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

Re: git-svn is "Unable to determine upstream SVN information..."

From
EWEric Wong <normalperson@yhbt.net>
Date
Jul 10, 2009, 03:31 UTC
Message-ID
<20090710033133.GA23082@dcvr.yhbt.net>
In-Reply-To
<ohrc5510bko329be5ugj3n6bgvhcevd2kg@4ax.com>
esskov@oncable.dk wrote:
Show 10 quoted lines
> 	Hi,
> 
> I'm trying to clone the trunk of an svn repo, so that I can work on a set
> of patches locally, and then occasionally push some of them back to svn.
> 
> The git-svn clone seems to go well, and the resulting git log looks
> alright. However, git-svn info and git-svn rebase both say "Unable to
> determine upstream SVN information from working tree history".
> Also, git-svn log shows nothing.  I'm using the svn:// protocol btw, but I
> guess the protocol shouldn't matter?

Protocol shouldn't matter. Do you have any non-linear history from merges in git? git-svn (and SVN) doesn't play very nicely with non-linear history that git merges can generate.

Does having a clean clone of that repo fix things? You didn't use --no-metadata or blow away your .git/svn/* directories, did you?

Show 12 quoted lines
> To test if this was a general problem, I just tried to git-svn clone a
> repo on some public svn server which was also using the svn protocol. I
> used exactly the same syntax for the svn init and fetch commands. However,
> the resulting git repo did NOT suffer from the problem, i.e., git-svn info
> reported nicely etc.
> 
> At some point I suspected that there might be a problem with the
> "git-svn-id ..." lines in the commits for the problematic repo, but they
> look just like the ones for the working repo. The .git/config files of the
> working and the non-working git-repos are similar as well. 
> 
> What could be causing this problem?

Which version of git svn is this? Are there any weird characters in the URL? Off the top of my head I can't think of anything else; I assume you're not allowed to share access to the repo (or to the clone) you're having problems with?

-- 
Eric Wong
Previous: esskov@oncable.dkNext: Esben Skovenborg
Message 2 of 8 in “git-svn is "Unable to determine upstream SVN information..."”
  1. esskov@oncable.dkJul 9, 2009
  2. Eric WongJul 10, 2009
  3. Esben SkovenborgJul 10, 2009
  4. Eric WongJul 10, 2009
  5. git svn: allow uppercase UUIDs from SVNEric Wong, Jul 12, 2009
  6. Junio C HamanoJul 12, 2009
  7. Junio C HamanoJul 12, 2009
  8. Eric WongJul 12, 2009

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.