From: Mark Levedahl Date: Sat, 12 Jan 2008 05:54:32 GMT Subject: [PATCH] git-clone - Set remotes.origin config variable Message-ID: <1200117273-3524-3-git-send-email-mlevedahl@gmail.com> In-Reply-To: <1200117273-3524-2-git-send-email-mlevedahl@gmail.com> This records the users choice of default remote name (by default "origin") as given by the -o option. Signed-off-by: Mark Levedahl --- Documentation/git-clone.txt | 3 ++- git-clone.sh | 1 + 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index fdccbd4..6c15fa4 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -95,7 +95,8 @@ OPTIONS --origin :: -o :: Instead of using the remote name 'origin' to keep track - of the upstream repository, use instead. + of the upstream repository, use instead. The name + is recorded in the core.origin config variable. --upload-pack :: -u :: diff --git a/git-clone.sh b/git-clone.sh index b4e858c..7208d68 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -242,6 +242,7 @@ fi && export GIT_DIR && GIT_CONFIG="$GIT_DIR/config" git-init $quiet ${template+"$template"} || usage +git config core.origin $origin if test -n "$bare" then GIT_CONFIG="$GIT_DIR/config" git config core.bare true -- 1.5.4.rc2.98.g1f3d5