Re: How to continue to run 'git svn fetch' for a repo with no git-svn metadata

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

 



On Tue, Apr 27, 2010 at 10:51 PM, Ævar Arnfjörð Bjarmason
<avarab@xxxxxxxxx> wrote:
> Read these:
>
>    http://code.google.com/p/chromium/wiki/UsingGit#Initial_Setup
>    http://trac.parrot.org/parrot/wiki/git-svn-tutorial
>
> This should probably be in the git-svn documentation itself.

Thanks. The last link explains very clear. I just copy and paste from it.

Adding git-svn metadata to the github clone

If you want to re-populate the SVN metadata that can quickly be done
by taking your up-to-date clone of leto's repo off of gihub and adding
this to your .git/config

    [svn-remote "svn"]
            url = https://svn.parrot.org/parrot
            fetch = trunk:refs/remotes/trunk
Then run this command to find the "top commit"

     git show origin/upstream | head -n 1
and put that commit hash into a file .git/refs/remotes/trunk
(obviously replace the has with the one from the above command)

     echo c85aaa38b99cedb087e5f6fb69ce6d4a6ac57a0b > .git/refs/remotes/trunk
and finally

     git svn fetch
--
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]