Do not merge random set of refs out of wildcarded refs
[gitweb.git] / git-clone.sh
index f37eb9d105264294e1dd63beaeb192023a0ec8c6..3d388de62a9ee212c8f54f3a5dc9a8b823bc8934 100755 (executable)
@@ -388,7 +388,7 @@ then
 
                # Set up the mappings to track the remote branches.
                git-repo-config remote."$origin".fetch \
-                       "refs/heads/*:$remote_top/*" '^$' &&
+                       "+refs/heads/*:$remote_top/*" '^$' &&
                rm -f "refs/remotes/$origin/HEAD"
                git-symbolic-ref "refs/remotes/$origin/HEAD" \
                        "refs/remotes/$origin/$head_points_at" &&