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>
This commit is contained in:
Junio C Hamano 2005-08-26 10:37:17 -07:00
parent 5f5608bcec
commit 9a9cbb6e9f

View file

@ -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 "$@")