diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-26 10:37:17 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-28 12:14:30 -0700 |
commit | 9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54 (patch) | |
tree | 421dbb4d737737ecbb3e2e8b227c6df215b6f1a9 /git-push-script | |
parent | 5f5608bcec417d4c92ac727fdcc83563730c21e9 (diff) | |
download | git-9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54.tar.gz git-9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54.tar.xz |
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>
Diffstat (limited to 'git-push-script')
-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 5fa5af2af..744ee7e7d 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 "$@") |