diff options
author | Brandon Casey <drafnel@gmail.com> | 2017-09-17 15:28:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-19 12:13:09 +0900 |
commit | 697bc8858114ddda705be6f6eb3f997b64efa659 (patch) | |
tree | 3eb46eb2055ea4a552aebb2d651389ab9661d49e /git-rebase.sh | |
parent | 33e75122f483f887d4db7ccec01f42dea7ee79fb (diff) | |
download | git-697bc8858114ddda705be6f6eb3f997b64efa659.tar.gz |
git-rebase: don't ignore unexpected command line arguments
Currently, git-rebase will silently ignore any unexpected command-line
switches and arguments (the command-line produced by git rev-parse).
This allowed the rev-parse bug, fixed in the preceding commits, to go
unnoticed. Let's make sure that doesn't happen again. We shouldn't be
ignoring unexpected arguments. Let's not.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase.sh')
-rwxr-xr-x | git-rebase.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-rebase.sh b/git-rebase.sh index 2cf73b88e8..45f187bdbf 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -348,6 +348,9 @@ do shift break ;; + *) + usage + ;; esac shift done |