git 1.7.9.5 では、次の行をエラーなしで実行できました。
export SVNPASS=readonly
git clone git@github.com:dtenenbaum/RGalaxy.test.git
cd RGalaxy.test/
git config --add svn-remote.hedgehog.url https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/RGalaxy
git config --add svn-remote.hedgehog.fetch :refs/remotes/hedgehog
# the following is a shortcut to avoid fetching every commit since antiquity, since I happen to know the commit number
# where this folder was added to svn:
echo $SVNPASS | git svn fetch --username readonly hedgehog -r 65762:HEAD
git checkout -b local-hedgehog -t hedgehog
git 1.8.3.4 および 1.8.4.1 では、最後の行は次のようになります。
fatal: Cannot setup tracking information; starting point 'hedgehog' is not a branch.
この質問へのコメントはダウングレードを示唆していますが、なぜこれが起こっているのか知りたいです:それはバグですか? もしそうなら、それは報告されていますか?または、これを行うためのより良い方法はありますか?もしそうなら、それは何ですか?
ちなみに、「git branch -a」は次を返します。
* master
remotes/hedgehog
remotes/origin/HEAD -> origin/master
remotes/origin/master