@matheusbsbs / matheus-bagliano / commits / 983d2ee284
Fork 0

git-clone: stop dumb protocol from copying refs outside heads/ and tags/.

Most notably, the original code first copied refs/remotes/ that remote side had to local, and overwrote them by mapping refs/heads/ from the remote when a dumb protocol transport was used. This makes the clone behaviour by dumb protocol in line with the git native and rsync transports. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Nov 24, 2006 at 19:07 UTC 983d2ee284936e8bf14823863d3945b4d8740b94
1 file changed +4
git-clone.sh
+4
@@ -48,6 +48,10 @@ Perhaps git-update-server-info needs to be run there?"
48 case "$name" in
49 *^*) continue;;
50 esac
51 + case "$bare,$name" in
52 + yes,* | ,heads/* | ,tags/*) ;;
53 + *) continue ;;
54 + esac
55 if test -n "$use_separate_remote" &&
56 branch_name=`expr "z$name" : 'zheads/\(.*\)'`
57 then