]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5801-remote-helpers.sh
transport-helper: warn when refspec is not used
authorFelipe Contreras <felipe.contreras@gmail.com>
Thu, 18 Apr 2013 04:14:31 +0000 (23:14 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Apr 2013 06:27:03 +0000 (23:27 -0700)
commita93b4a09acfed0e2a006770d0196c74968e65c25
tree27800b715303923bc1323ba1836d0bf27d0a6e97
parent21610d820b97583a8f4e3e7f4a48716c8e32fd92
transport-helper: warn when refspec is not used

For the modes that need it. In the future we should probably error out,
instead of providing half-assed support.

The reason we want to do this is because if it's not present, the remote
helper might be updating refs/heads/*, or refs/remotes/origin/*,
directly, and in the process fetch will get confused trying to update
refs that are already updated, or older than what they should be. We
shouldn't be messing with the rest of git.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5801-remote-helpers.sh
transport-helper.c