summaryrefslogtreecommitdiff
path: root/git-rebase.sh
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2017-09-17 15:28:17 -0700
committerJunio C Hamano <gitster@pobox.com>2017-09-19 12:13:09 +0900
commit697bc8858114ddda705be6f6eb3f997b64efa659 (patch)
tree3eb46eb2055ea4a552aebb2d651389ab9661d49e /git-rebase.sh
parent33e75122f483f887d4db7ccec01f42dea7ee79fb (diff)
downloadgit-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-xgit-rebase.sh3
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