Re: git-svn clone --stdlayout causes "fatal: refs/remotes/trunk: not a valid SHA1"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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=<trunk dir> \
	--tags=<tags dir>

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]