Skip to contentSkip to conversation

git svn fetch -> fatal: refs/remotes/trunk: not a valid SHA1

DISCUSSION Nicolas Kuttler 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello,

I'm using git version 1.7.2.3 and get the
"fatal: refs/remotes/trunk: not a valid SHA1" error while fetching from an svn repository.

$ mkdir test
$ cd test
$ git svn init -s http://svn.wp-plugins.org/zero-conf-mail
$ git svn fetch -r246566

r246566 = 92e8abc50bf56cc1774e0e2688a280bc379a4817 (refs/remotes/tags/0.6.1)
fatal: refs/remotes/trunk: not a valid SHA1
update-ref refs/heads/master refs/remotes/trunk: command returned error: 128

The problem seems to be that r246566 was created by a "git svn tag foo" command, fetching r246565 is works just fine. I didn't test if native svn tagging produces the same error but can do this if relevant. It could also be specific to the wordpress svn repository, I haven't tested that either.

Thanks,

Nicolas

P.S. Please CC me as I'm not on the list.

--
Nicolas Kuttler
[email protected]

http://www.nkuttler.de
http://www.nicolaskuttler.de (deutsch)