From 11f7046fd495592967a9c5da673cfc9b46c790c7 Mon Sep 17 00:00:00 2001
From: Joao Ventura <jcnventura-drupal@venturas.org>
Date: Fri, 11 Mar 2011 12:42:20 -0600
Subject: [PATCH] Issue #1077938: use older pretty=format syntax

---
 grn.drush.inc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/grn.drush.inc b/grn.drush.inc
index f53b72c..0839e89 100644
--- a/grn.drush.inc
+++ b/grn.drush.inc
@@ -71,11 +71,11 @@ function drush_grn_release_notes($tag1n, $tag2n) {
   if (!is_dir(".git")) {
     drush_log("This must be run from the root directory of your Git project.");
   }
-  if (!drush_shell_exec('%s show -s --format=%%H %s^{commit}', $git, $tag1n)) {
+  if (!drush_shell_exec('%s show -s --pretty=format:%%H %s^{commit}', $git, $tag1n)) {
     return drush_set_error('DRUSH_INVALID_TAG', dt('!tag is not a valid Git tag.', array('!tag' => $tag1n)));
   }
   $tag1 = drush_shell_exec_output();
-  if (!drush_shell_exec('%s show -s --format=%%H %s^{commit}', $git, $tag2n)) {
+  if (!drush_shell_exec('%s show -s --pretty=format:%%H %s^{commit}', $git, $tag2n)) {
     return drush_set_error('DRUSH_INVALID_TAG', dt('!tag is not a valid Git tag.', array('!tag' => $tag2n)), 'error');
   }
   $tag2 = drush_shell_exec_output();
@@ -111,7 +111,7 @@ function _drush_grn_format_changes($issues, $prev_tag, $tag1, $tag2, $git) {
  */
 function _drush_grn_get_changes($tag1, $tag2, $git) {
   $changes = array();
-  if (!drush_shell_exec("%s log -s --format=%%s %s..%s", $git, $tag1, $tag2)) {
+  if (!drush_shell_exec("%s log -s --pretty=format:%%s %s..%s", $git, $tag1, $tag2)) {
     return drush_set_error('DRUSH_GIT_LOG_ERROR', 'git log returned an error.');
   }
   $output = drush_shell_exec_output();
-- 
1.7.1

