On Monday, 16 January 2012 at 04:16:12 UTC, Andrei Alexandrescu
wrote:
On 1/15/12 9:15 PM, Jesse Phillips wrote:
I might suggest using:
git clone -o upstream
git://github.com/D-Programming-Language/tools.git
for cloning a new repository. This would allow developers to
add their
fork of the repository as origin (Default remote name). So now
the
update script would have to pull from upstream instead of
origin to do
the update... This will be a common setup for not
D-Programming-Language
organization members.
Updated, please advise. Thanks!
https://github.com/D-Programming-Language/tools/commit/c5c61a67b7f043f8127d3bf92c98d19a30d6b06d
Andrei
With that change it is likely you'll want to change update to use
upstream instead of origin. Though it is probably dependent on if
the user has upstream which I don't know of a good way to check.
Or you could just require those to have an upstream.
https://github.com/D-Programming-Language/tools/blob/c5c61a67b7f043f8127d3bf92c98d19a30d6b06d/update.sh#L136
You can add the remote to your repository with
git remote add upstream
g...@github.com:D-Programming-Language/dmd.git