diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-26 21:37:17 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-28 23:14:30 +0400 |
commit | 9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54 (patch) | |
tree | 421dbb4d737737ecbb3e2e8b227c6df215b6f1a9 | |
parent | 5f5608bcec417d4c92ac727fdcc83563730c21e9 (diff) |
Barf nicely when "git push" is run without parameter.
Saying "internal error" makes it look like my fault ;-).
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-x | git-push-script | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-push-script b/git-push-script index 5fa5af2af8..744ee7e7dc 100755 --- a/git-push-script +++ b/git-push-script @@ -26,6 +26,10 @@ do esac shift done +case "$#" in +0) + die "Where would you want to push today?" ;; +esac . git-parse-remote-script remote=$(get_remote_url "$@") |