@matheusbsbs / matheus-bagliano / commits / b6309ac2b8
Fork 0

Force the medium pretty format on calls to git log

If a user has customized format.pretty in config, git-svn rebase fails with: Unable to determine upstream SVN information from working tree history because the command expects to read the commit log in the default format. This fixes the command to explicitly ask for the format it wants to read from. Signed-off-by: Pedro Melo <melo@simplicidade.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Pedro Melo committed Apr 10, 2008 at 17:05 UTC b6309ac2b8bc9794f4e8e9e829ccfa3360f2df49
1 file changed +1 -1
git-svn.perl
+1 -1
@@ -1120,7 +1120,7 @@ sub cmt_metadata {
1120
1121 sub working_head_info {
1122 my ($head, $refs) = @_;
1123 - my @args = ('log', '--no-color', '--first-parent');
1123 + my @args = ('log', '--no-color', '--first-parent', '--pretty=medium');
1124 my ($fh, $ctx) = command_output_pipe(@args, $head);
1125 my $hash;
1126 my %max;