summaryrefslogtreecommitdiff
path: root/t/t5525-fetch-tagopt.sh
diff options
context:
space:
mode:
authorLibravatar Anthony Baire <Anthony.Baire@irisa.fr>2013-11-27 19:34:09 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-01-13 14:37:52 -0800
commit1c3e0f007c8c18dd4ceda3c67cbfb8e01ef2c894 (patch)
tree383666fb15260f4cb98a55c58a3f44f9aea74650 /t/t5525-fetch-tagopt.sh
parentGit 1.8.5 (diff)
downloadtgif-1c3e0f007c8c18dd4ceda3c67cbfb8e01ef2c894.tar.xz
subtree: fix argument validation in add/pull/push
When working with a remote repository add/pull/push do not accept a <refspec> as parameter but just a <ref>. They should accept any well-formatted ref name. This patch: - relaxes the check the <ref> argument in "git subtree add <repo>" (previous code would not accept a ref name that does not exist locally too, new code only ensures that the ref is well formatted) - add the same check in "git subtree pull/push" + check the number of parameters - update the doc to use <ref> instead of <refspec> Signed-off-by: Anthony Baire <Anthony.Baire@irisa.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5525-fetch-tagopt.sh')
0 files changed, 0 insertions, 0 deletions