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>
Junio C Hamano committed
Mar 22, 2006 at 00:23 UTC
4c2e98d6ce47aa9fcc1598c68e630f371cd4f8cb
1 file changed
+2
-2
git-clone.sh
+2
-2
@@ -370,14 +370,14 @@ then
370
Pull: refs/heads/$head_points_at:refs/$origin_tracking" &&
371
case "$use_separate_remote" in
372
t) git-update-ref HEAD "$head_sha1" ;;
373
- *) git-update-ref "refs/$origin" $(git-rev-parse HEAD) ;;
373
+ *) git-update-ref "refs/heads/$origin" $(git-rev-parse HEAD) ;;
374
esac &&
375
(cd "$GIT_DIR/$remote_top" && find . -type f -print) |
376
while read dotslref
377
do
378
name=`expr "$dotslref" : './\(.*\)'` &&
379
test "$head_points_at" = "$name" ||
380
- test "$origin" = "$head" ||
380
+ test "$origin" = "$name" ||
381
echo "Pull: refs/heads/${name}:$remote_top/${name}"
382
done >>"$GIT_DIR/remotes/$origin" &&
383
case "$use_separate_remote" in