author | Junio C Hamano <junkio@cox.net> | |
Wed, 13 Dec 2006 18:30:11 +0000 (10:30 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 13 Dec 2006 18:30:11 +0000 (10:30 -0800) | ||
commit | 37adac765a469f8f8495e2befe7afeda65a2b272 | |
tree | 2a9b96df44e37a717ee01a782c120d3ef089417a | tree | snapshot |
parent | 411fb8baa6862b76f7bdd9fc0d5844855a4db589 | commit | diff |
send-pack: tighten checks for remote names
"git push $URL HEAD~6" created a bogus ref HEAD~6 immediately
under $GIT_DIR of the remote repository. While we should keep
refspecs that have arbitrary extended SHA-1 expression on the
source side working (e.g. "HEAD~6:refs/tags/yesterday"), we
should not create bogus ref on the other end.
Signed-off-by: Junio C Hamano <junkio@cox.net>
"git push $URL HEAD~6" created a bogus ref HEAD~6 immediately
under $GIT_DIR of the remote repository. While we should keep
refspecs that have arbitrary extended SHA-1 expression on the
source side working (e.g. "HEAD~6:refs/tags/yesterday"), we
should not create bogus ref on the other end.
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c | diff | blob | history | |
send-pack.c | diff | blob | history |