Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Force the medium pretty format on calls to git log
author
Pedro Melo
<melo@simplicidade.org>
Thu, 10 Apr 2008 16:05:21 +0000
(17:05 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 12 Apr 2008 00:35:35 +0000
(17:35 -0700)
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>
git-svn.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f59774a
)
diff --git
a/git-svn.perl
b/git-svn.perl
index 81afb5cfcd67731a6f8c76a032408a8f048cc1c4..b864b54a4440537900cab47e71ee93bd01d72d28 100755
(executable)
--- a/
git-svn.perl
+++ b/
git-svn.perl
@@
-1120,7
+1120,7
@@
sub cmt_metadata {
sub working_head_info {
my ($head, $refs) = @_;
- my @args = ('log', '--no-color', '--first-parent');
+ my @args = ('log', '--no-color', '--first-parent'
, '--pretty=medium'
);
my ($fh, $ctx) = command_output_pipe(@args, $head);
my $hash;
my %max;