mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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:
parent
5f5608bcec
commit
9a9cbb6e9f
|
@ -26,6 +26,10 @@ do
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
case "$#" in
|
||||||
|
0)
|
||||||
|
die "Where would you want to push today?" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
. git-parse-remote-script
|
. git-parse-remote-script
|
||||||
remote=$(get_remote_url "$@")
|
remote=$(get_remote_url "$@")
|
||||||
|
|
Loading…
Reference in a new issue