summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-26 17:37:17 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-28 19:14:30 (GMT)
commit9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54 (patch)
tree421dbb4d737737ecbb3e2e8b227c6df215b6f1a9
parent5f5608bcec417d4c92ac727fdcc83563730c21e9 (diff)
downloadgit-9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54.zip
git-9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54.tar.gz
git-9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54.tar.bz2
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>
-rwxr-xr-xgit-push-script4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-push-script b/git-push-script
index 5fa5af2..744ee7e 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 "$@")