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

Re: git-svn aborts with "Use of uninitialized value $u" when a non-svn-backed branch is present in remote

From
EWEric Wong <e@80x24.org>
Date
Jun 24, 2016, 20:06 UTC
Message-ID
<20160624200603.GA28498@dcvr.yhbt.net>
In-Reply-To
<CALi1mtc6Byb39kbAv16vmkUVu3JDdGG4-yVrLroDVraPDxGFng@mail.gmail.com>
Please don't drop Cc:, re-adding git@vger and Christian
Jacob Godserv <jacobgodserv@gmail.com> wrote:
Show 11 quoted lines
> > Christian (Cc-ed) also noticed the problem a few weeks ago
> > and took a more drastic approach by having git-svn die
> > instead of warning:
> > http://mid.gmane.org/1462604323-18545-1-git-send-email-chriscool@tuxfamily.org
> > which landed as commit 523a33ca17c76bee007d7394fb3930266c577c02
> > in git.git: https://bogomips.org/mirrors/git.git/patch?id=523a33ca17c7
> >
> > Is dying here too drastic and maybe warn is preferable?
> 
> In my opinion this is too drastic. It keeps me from storing
> git-specific data on a git-svn mirror.
I tend to agree, but will wait to see what Christian thinks.
Show 22 quoted lines
> Here's my setup:
>  - My git-svn mirror uses git-svn to create a git repo that mirrors
> svn history. This repository is then pushed to a clean bare
> repository. So far so good. Only svn-sourced branches exist.
>  - The git-svn mirror script also saves a copy of the git-svn
> configuration used to generate the git mirror repository in an
> "orphaned" branch called something like 'git-svn-conf'. This is
> completely separate from the svn history, and exists only for my
> git-svn purposes.
>  - On the "client" side, another script I wrote knows how to parse the
> git-svn configuration in that 'git-svn-conf' branch to properly
> reconfigure git-svn on the local machine, so I can use 'git svn'
> themselves to commit, etc., and still generate the same hashes so
> there's no forked history during the next mirror fetch.
> 
> Long story short: I have branches which aren't in SVN history for
> automated git-svn purposes.
> 
> It appears that simply skipping the branch in that loop fixes the
> issue. However, I don't know how the metadata is stored and what
> exactly that loop does, so I may be creating hidden side effects I
> have been lucky enough to not trigger yet.
Previous: Eric WongNext: Christian Couder
Message 4 of 6 in “git-svn aborts with "Use of uninitialized value $u" when a non-svn-backed branch is present in remote”
  1. Jacob GodservSep 22, 2015
  2. Jacob GodservJun 24, 2016
  3. Eric WongJun 24, 2016
  4. Eric WongJun 24, 2016
  5. Christian CouderJun 25, 2016
  6. git-svn: warn instead of dying when commit data is missingEric Wong, Jul 2, 2016

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.