Code

git-clone: typofix.
authorJunio C Hamano <junkio@cox.net>
Wed, 22 Mar 2006 08:23:16 +0000 (00:23 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 22 Mar 2006 08:50:32 +0000 (00:50 -0800)
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>
git-clone.sh

index 5953e18a5bfda9a2ceee6a5038d9401e5073bd17..6887321972aab5825734dd81560f9c8cdd010660 100755 (executable)
@@ -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