From 9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 26 Aug 2005 10:37:17 -0700 Subject: [PATCH] Barf nicely when "git push" is run without parameter. Saying "internal error" makes it look like my fault ;-). Signed-off-by: Junio C Hamano --- git-push-script | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-push-script b/git-push-script index 5fa5af2a..744ee7e7 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 "$@") -- 2.11.0