提交 b6309ac2 编写于 作者: P Pedro Melo 提交者: Junio C Hamano

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: NPedro Melo <melo@simplicidade.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 f59774ad
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册