]> git.ipfire.org Git - thirdparty/git.git/commit - git-svn.perl
git-svn: checkout files on new fetches
authorEric Wong <normalperson@yhbt.net>
Fri, 16 Feb 2007 09:45:13 +0000 (01:45 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 23 Feb 2007 08:57:13 +0000 (00:57 -0800)
commit1e889ef36c45b5554f7e317493ed3f4f901f8d9f
treed77c72dd5f3cefe586ba660b10c96ff49e028633
parent488a63ec233ce7edc5fd70172c196628b1d6a82b
git-svn: checkout files on new fetches

On newly-created repositories, 'refs/heads/master' does not
point to anything.  This can be confusing to new users; so we
update 'master' to point to the last imported ref after fetching
is done.

Once 'master' is valid; we assume HEAD points to it; and if
the repository is not bare, then checkout the files if the
working tree is clean and unused.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl