Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-26 21:37:17 +0400
committerJunio C Hamano <junkio@cox.net>2005-08-28 23:14:30 +0400
commit9a9cbb6e9f2a5ceca16cae2a959a7162abc36c54 (patch)
tree421dbb4d737737ecbb3e2e8b227c6df215b6f1a9 /git-push-script
parent5f5608bcec417d4c92ac727fdcc83563730c21e9 (diff)
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>
Diffstat (limited to 'git-push-script')
-rwxr-xr-xgit-push-script4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-push-script b/git-push-script
index 5fa5af2af8..744ee7e7dc 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 "$@")