@matheusbsbs / matheus-bagliano / commits / 8565a568cd
Fork 0

git-svn: fix processing of decorated commit hashes

The function working_head_info() fails to parse commit hashes if they are decorated (i.e. log.decorate is true), causing dcommit, rebase, and other vital git-svn commands to malfunction. This patch disables decorated log output with --no-decorate. [ew: wrapped long line] Signed-off-by: Mathias Lafeldt <misfire@debugon.org> Acked-by: Eric Wong <normalperson@yhbt.net>

Mathias Lafeldt committed Sep 24, 2010 at 00:05 UTC 8565a568cdd8604d4b5a00e52c64064a8aebf690
1 file changed +2 -1
git-svn.perl
+2 -1
@@ -1513,7 +1513,8 @@ sub cmt_sha2rev_batch {
1513
1514 sub working_head_info {
1515 my ($head, $refs) = @_;
1516 - my @args = ('log', '--no-color', '--first-parent', '--pretty=medium');
1516 + my @args = qw/log --no-color --no-decorate --first-parent
1517 + --pretty=medium/;
1518 my ($fh, $ctx) = command_output_pipe(@args, $head);
1519 my $hash;
1520 my %max;