git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Avoid git-rev-parse warnings in gitweb blame
@ 2008-06-03 10:14 Rafael Garcia-Suarez
  2008-06-03 10:14 ` [PATCH] Make cell alignment more robust " Rafael Garcia-Suarez
  2008-06-03 10:26 ` [PATCH] Avoid git-rev-parse warnings " Rafael Garcia-Suarez
  0 siblings, 2 replies; 3+ messages in thread
From: Rafael Garcia-Suarez @ 2008-06-03 10:14 UTC (permalink / raw)
  To: git; +Cc: Rafael Garcia-Suarez

Adding a '--' to the command-line avoids git-rev-parse emitting an error
message "ambiguous argument... Use '--' to separate paths from revisions".

Signed-off-by: Rafael Garcia-Suarez <rgarciasuarez@gmail.com>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 55fb100..472326f 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -4226,7 +4226,7 @@ HTML
 			              esc_html($rev));
 			print "</td>\n";
 		}
-		open (my $dd, "-|", git_cmd(), "rev-parse", "$full_rev^")
+		open (my $dd, "-|", git_cmd(), "rev-parse", '--', "$full_rev^")
 			or die_error(undef, "Open git-rev-parse failed");
 		my $parent_commit = <$dd>;
 		close $dd;
-- 
1.5.6.rc1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-03 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-03 10:14 [PATCH] Avoid git-rev-parse warnings in gitweb blame Rafael Garcia-Suarez
2008-06-03 10:14 ` [PATCH] Make cell alignment more robust " Rafael Garcia-Suarez
2008-06-03 10:26 ` [PATCH] Avoid git-rev-parse warnings " Rafael Garcia-Suarez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).