From: Junio C Hamano Date: Fri, 26 Aug 2005 17:37:17 +0000 (-0700) Subject: Barf nicely when "git push" is run without parameter. X-Git-Tag: v0.99.6~75 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54;p=git.git Barf nicely when "git push" is run without parameter. Saying "internal error" makes it look like my fault ;-). Signed-off-by: Junio C Hamano --- 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 "$@")