contrib/git-svn: use refs/remotes/git-svn instead of git-svn-HEAD
authorEric Wong <normalperson@yhbt.net>
Thu, 2 Mar 2006 05:58:31 +0000 (21:58 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 2 Mar 2006 08:01:36 +0000 (00:01 -0800)
commit2beb3cdd18225be657849790ed845c4d367b760a
treea786e864fe959ce5903b7083a112c15f8748bbf1
parent2486927d2ec9cc05ed7589540d103382d3751c10
contrib/git-svn: use refs/remotes/git-svn instead of git-svn-HEAD

After reading a lengthy discussion on the list, I've come to the
conclusion that creating a 'remotes' directory in refs isn't
such a bad idea.

You can still branch from it by specifying remotes/git-svn (not
needing the leading 'refs/'), and the documentation has been
updated to reflect that.

The 'git-svn' part of the ref can of course be set to whatever
you want by using the GIT_SVN_ID environment variable, as
before.

I'm using refs/remotes/git-svn, and not going with something
like refs/remotes/git-svn/HEAD as it's redundant for Subversion
where there's zero distinction between branches and directories.

Run git-svn rebuild --upgrade to upgrade your repository to use
the new head.  git-svn-HEAD must be manually deleted for safety
reasons.

Side note: if you ever (and I hope you never) want to run
git-update-refs on a 'remotes/' ref, make sure you have the
'refs/' prefix as you don't want to be clobbering your
'remotes/' in $GIT_DIR (where remote URLs are stored).

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/git-svn/git-svn.perl
contrib/git-svn/git-svn.txt
contrib/git-svn/t/t0000-contrib-git-svn.sh