{"thread":{"id":"25608","subject":"Re: git-svn clone --stdlayout causes \"fatal: refs/remotes/trunk: not a valid SHA1\"","startedAt":"2010-11-01T17:11:41Z","lastAt":"2010-11-01T18:14:59Z","messageCount":2,"participants":["Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"154933","messageId":"20101101171141.GA8853@burratino","threadId":"25608","inReplyTo":"225342.86075.qm@web24105.mail.ird.yahoo.com","subject":"Re: git-svn clone --stdlayout causes \"fatal: refs/remotes/trunk: not a valid SHA1\"","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-11-01T17:11:41Z","receivedAt":"2010-11-01T17:11:41Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi Klaus,\n\nKlaus wrote:\n\n> this works ok.\n>        git svn clone svn://localhost/MyPrj MyPrj  --username=MyUserName\n>     \n> this causes the error (I added \"--stdlayout\")\n>        git svn clone svn://localhost/MyPrj MyPrj  --stdlayout --username=MyUserName\n>     \n> last line of error output\n> …\n>         M       Wiki/MyPrj_wiki/MyPrjHistory.wiki\n> W: -empty_dir: MyPrjAll/trunc/MyPrjGui/DotNet11MainMenu.cs\n> r141 = ad4166b68d89c4b795fb74a4fc09168160b2f60e \n> (refs/remotes/tags/LastGuiMonolit_071207@142)\n> W: +empty_dir: MyPrjAll/trunc/MyPrj.Gui\n> r142 = 0decd283bb36f9296172970eeab377b6f93777ba \n> (refs/remotes/tags/LastGuiMonolit_071207@142)\n> Found branch parent: (refs/remotes/tags/LastGuiMonolit_071207) 0decd283bb36f9296172970eeab377b6f93777ba\n> Following parent with do_switch\n> Successfully followed parent\n> r143 = a4861b50a5f1c067210b30951dc06012a7d2da25 \n> (refs/remotes/tags/LastGuiMonolit_071207)\n> fatal: refs/remotes/trunk: not a valid SHA1\n> update-ref refs/heads/master refs/remotes/trunk: command returned error: 128\n\nIs your repository public?  If not, could you give a sketch of the project\nhistory, for example by running\n\n $ git log --oneline --name-status\n\nfrom a successful (non-stdlayout) clone?\n\n> note: although i am using ms-windows7 i mailed this report to the debian \n> mailing-list because i think that  \n\nRedirecting discussion to the git mailing list; maybe someone there will\nhave other ideas for debugging.\n\nThanks for reporting,\nJonathan\n"},{"id":"154938","messageId":"20101101181459.GA9387@burratino","threadId":"25608","inReplyTo":"20101101171141.GA8853@burratino","subject":"Re: git-svn clone --stdlayout causes \"fatal: refs/remotes/trunk: not a valid SHA1\"","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-11-01T18:14:59Z","receivedAt":"2010-11-01T18:14:59Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Jonathan Nieder wrote:\n\n> Is your repository public?  If not, could you give a sketch of the project\n> history, for example by running\n>\n>  $ git log --oneline --name-status\n>\n> from a successful (non-stdlayout) clone?\n\nSince your trunk directory is called \"trunc\" rather than \"trunk\", it seems\nstdlayout is not appropriate for the import.\n\nThere is also a tag named \"trunc\".  Not sure how that will work out. :(\n\nAnyway, hopefully that information can help interested people to reproduce\nthis problem, document it, and make it fail with a better error message.\n\nFor your import, perhaps\n\n\t--trunk=<trunk dir> \\\n\t--tags=<tags dir>\n\nwould give better results?\n\nIf this is a one-time conversion (i.e., it will not need to be updated with\nlater changes from svn), then you might also find some of the methods\ndescribed in\n\n http://thread.gmane.org/gmane.comp.version-control.git/158940/focus=159054\n\nhelpful (especially use of \"git filter-branch\" to extract subdirectories\nfrom a simple whole-tree import).\n\nHope that helps,\nJonathan\n"}]}