aboutsummaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-22 00:23:16 -0800
committerJunio C Hamano <junkio@cox.net>2006-03-22 00:50:32 -0800
commit4c2e98d6ce47aa9fcc1598c68e630f371cd4f8cb (patch)
tree226744d8e501d724812ef0b52ee8c336346e54c2 /git-clone.sh
parent5ceb05f82edc49ad5e6b0ad98d633c124a567309 (diff)
downloadgit-4c2e98d6ce47aa9fcc1598c68e630f371cd4f8cb.tar.gz
git-4c2e98d6ce47aa9fcc1598c68e630f371cd4f8cb.tar.xz
git-clone: typofix.
The traditional one created refs/origin by mistake, not refs/heads/origin. Also it mistakenly failed to prevent $origin from being listed twice in remotes/origin file. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-xgit-clone.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-clone.sh b/git-clone.sh
index 5953e18a5..688732197 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -370,14 +370,14 @@ then
Pull: refs/heads/$head_points_at:refs/$origin_tracking" &&
case "$use_separate_remote" in
t) git-update-ref HEAD "$head_sha1" ;;
- *) git-update-ref "refs/$origin" $(git-rev-parse HEAD) ;;
+ *) git-update-ref "refs/heads/$origin" $(git-rev-parse HEAD) ;;
esac &&
(cd "$GIT_DIR/$remote_top" && find . -type f -print) |
while read dotslref
do
name=`expr "$dotslref" : './\(.*\)'` &&
test "$head_points_at" = "$name" ||
- test "$origin" = "$head" ||
+ test "$origin" = "$name" ||
echo "Pull: refs/heads/${name}:$remote_top/${name}"
done >>"$GIT_DIR/remotes/$origin" &&
case "$use_separate_remote" in