Re: git-svn stubbornly re-creating branch "master"
- From
- Mikael Magnusson <mikachu@gmail.com>
- Date
- Apr 3, 2009, 10:57 UTC
- Message-ID
- <237967ef0904030357u15ef77f2rb3299b6f6c651404@mail.gmail.com>
- In-Reply-To
- <37fcd2780903291252i19bba8ccx9dfb73e763d95b15@mail.gmail.com>
2009/3/29 Dmitry Potapov <dpotapov@gmail.com>:
Show 10 quoted lines
> On Sun, Mar 29, 2009 at 18:13:47 +0100, Marcin Owsiany > <porridge@debian.org> wrote: >> >> As you can see, "master" sprang back to life after the last command. > > It looks like git-svn does not like a repo without 'master'. It seems > the problem was caused by this patch: > http://git.kernel.org/?p=git/git.git;a=commit;h=1e889ef36c45b5554f7e317493ed3f4f901f8d9f > > I have added Eric to CC...
Why not just check if HEAD points to a valid commit, rather than master? It should do the same in the newly created repo case, and stop annoying people on updates.
-- Mikael Magnusson