Code

Barf nicely when "git push" is run without parameter.
[git.git] / git-push-script
index 5fa5af2af896e3bf6854387e744b9d2643a8f510..744ee7e7dc8986767f410f99f4ff8c644654b172 100755 (executable)
@@ -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 "$@")