git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Pedro Melo <melo@simplicidade.org>
Date
Apr 10, 2008, 16:05 UTC
Message-ID
<1207843521-8492-1-git-send-email-melo@simplicidade.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
Next: Junio C Hamano
Message 1 of 2 in “Force the medium pretty format on calls to git log”
  1. Force the medium pretty format on calls to git logPedro Melo, Apr 10, 2008
  2. Junio C HamanoApr 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.