# [PATCH] Force the medium pretty format on calls to git log

2 messages from 2008-04-10 to 2008-04-11. Participants: Pedro Melo, Junio C Hamano.
Thread: https://gitlist.dev/t/13054

## Pedro Melo, 2008-04-10 16:05

Subject: [PATCH] Force the medium pretty format on calls to git log
Message-ID: <1207843521-8492-1-git-send-email-melo@simplicidade.org>
URL: https://gitlist.dev/e/1207843521-8492-1-git-send-email-melo%40simplicidade.org

```
If a user as set a format.pretty in his config, git-svn rebase will fail with:

Unable to determine upstream SVN information from working tree history

We need to force the medium format to obtain the needed information from the log.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
---
 git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index 81afb5c..b864b54 100755
--- 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;
-- 
1.5.5.23.g2a5f

```

## Junio C Hamano, 2008-04-11 05:41

Subject: Re: [PATCH] Force the medium pretty format on calls to git log
Message-ID: <7vy77lt0c0.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vy77lt0c0.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <1207843521-8492-1-git-send-email-melo@simplicidade.org>

```
Pedro Melo <melo@simplicidade.org> writes:

> If a user as set a format.pretty in his config, git-svn rebase will fail
> with:
>
> Unable to determine upstream SVN information from working tree history
>
> We need to force the medium format to obtain the needed information from
> the log.
>
> Signed-off-by: Pedro Melo <melo@simplicidade.org>

Thanks.  This should have been part of 9225d7b (specify explicit
"--pretty=medium" with `git log/show/whatchanged`, 2008-03-02) but
apparently we did not do a thorough job.

```
