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

Re: minor git-svn bug

From
EWEric Wong <normalperson@yhbt.net>
Date
Jul 3, 2009, 06:24 UTC
Message-ID
<20090703062416.GA23128@dcvr.yhbt.net>
In-Reply-To
<4A4CEB81.4080309@doki-pen.org>
doki_pen <doki_pen@doki-pen.org> wrote:
> Is this the right place to bring up bugs?  Or only patches?  Anyway, I  
> found a small bug.

Yes to both. Also, feel free to Cc: me on git svn questions since it halves the chance of me losing track of it.

Show 9 quoted lines
> Due to some strange structure on the svn host, I have manually added the  
> fetch lines to the [svn-remote] section of config.  There are hundreds  
> of branches and tags, so I only have lines for what I need.  I removed  
> one that I thought I didn't need anymore, and also removed the remote  
> tracking branch.  When I discovered that I needed the branch again, I  
> added it back to svn-remotes and did a git svn fetch.  There were no new  
> commits on the branch, so the remote tracking branch was not recreated.   
> The work around was to do a commit on the branch via svn, then git svn  
> fetch.  This caused the remote tracking branch to reappear. --

If you have reflogs (on by default), then it would've been possible to recreate the ref without hitting the network at all by creating the ref based on the reflog.

git svn not detecting that a remote ref was manually removed was probably caused by lingering metadata in .git/svn/$remote_branch/. Clobbering that directory alone should've been sufficient for "git svn fetch" to work...

-- 
Eric Wong
Previous: doki_pen
Message 2 of 2 in “minor git-svn bug”
  1. doki_penJul 2, 2009
  2. Eric WongJul 3, 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.