From: Jonathan Nieder Date: Mon, 01 Nov 2010 18:14:59 GMT Subject: Re: git-svn clone --stdlayout causes "fatal: refs/remotes/trunk: not a valid SHA1" Message-ID: <20101101181459.GA9387@burratino> In-Reply-To: <20101101171141.GA8853@burratino> Jonathan Nieder wrote: > Is your repository public? If not, could you give a sketch of the project > history, for example by running > > $ git log --oneline --name-status > > from a successful (non-stdlayout) clone? Since your trunk directory is called "trunc" rather than "trunk", it seems stdlayout is not appropriate for the import. There is also a tag named "trunc". Not sure how that will work out. :( Anyway, hopefully that information can help interested people to reproduce this problem, document it, and make it fail with a better error message. For your import, perhaps --trunk= \ --tags= would give better results? If this is a one-time conversion (i.e., it will not need to be updated with later changes from svn), then you might also find some of the methods described in http://thread.gmane.org/gmane.comp.version-control.git/158940/focus=159054 helpful (especially use of "git filter-branch" to extract subdirectories from a simple whole-tree import). Hope that helps, Jonathan