Re: publishing a forked^W cloned directory with ancestry

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bart Trojanowski
Date: Thursday, August 30, 2007 - 1:27 pm

* martin f krafft <madduck@madduck.net> [070830 15:25]:

I think a .git/config like this will do what you want:

[remote "upstream"]
        url = git://mdadm-upstream-repo
        fetch = +refs/heads/*:refs/remotes/upstream/*

[remote "debian"]
        url = git://debian-repo-you-want-to-publish-to
        fetch = +refs/heads/*:refs/remotes/debian/*
        push = refs/remotes/upstream/master:refs/heads/upstream
        push = refs/heads/master:refs/heads/master

Now when you 'git push debian' it will populate the 'upstream' and
'master' branches properly.

When someone clones your repo, they will get origin/master (your branch)
and origin/upstream (the official mdadm branch).

Did I understand the problem correctly?

-Bart

-- 
				WebSig: http://www.jukie.net/~bart/sig/
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
publishing a forked^W cloned directory with ancestry, martin f krafft, (Thu Aug 30, 12:25 pm)
Re: publishing a forked^W cloned directory with ancestry, martin f krafft, (Thu Aug 30, 12:47 pm)
Re: publishing a forked^W cloned directory with ancestry, J. Bruce Fields, (Thu Aug 30, 12:49 pm)
Re: publishing a forked^W cloned directory with ancestry, Bart Trojanowski, (Thu Aug 30, 1:27 pm)
Re: publishing a forked^W cloned directory with ancestry, martin f krafft, (Tue Sep 4, 7:17 am)