summaryrefslogtreecommitdiff
path: root/t/t5515/fetch.master
diff options
context:
space:
mode:
authorLibravatar Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>2012-06-26 07:51:55 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-06-26 13:17:53 -0700
commitf2b6a19907ccb366790c7ec7b640f9111ac7ad32 (patch)
tree07f8d3448c7f9da81ecdf0d680fb1a51bdc5daec /t/t5515/fetch.master
parentrebase: don't source git-sh-setup twice (diff)
downloadtgif-f2b6a19907ccb366790c7ec7b640f9111ac7ad32.tar.xz
rebase --root: print usage on too many args
Just like git rebase --onto newbase upstream branch error displays the usage message, so should clearly git rebase --onto newbase --root branch error , but it doesn't. Instead, it ignores both "branch" and "error" and rebases the current HEAD. This is because we try to match the number of remainging arguments "$#", which fails to match "1" argument and matches the "*" that really should have been a "0". Make sure we display usage information when too many arguments are given. Also fail-fast in case of similar bugs in the future by matching on exactly 0 arguments and failing on unknown numbers. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.master')
0 files changed, 0 insertions, 0 deletions