summaryrefslogtreecommitdiff
path: root/git-remote.perl
diff options
context:
space:
mode:
authorQuy Tonthat <qtonthat@gmail.com>2007-01-13 11:55:21 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-13 18:03:44 (GMT)
commitc03f77573ac4db7f549948c4c0de4fa3c9eb545c (patch)
treed6852b8a4e938399ec42bd573fa49cbb9a8b326c /git-remote.perl
parente66191f4837f2d18bb70ceaf3cad4eb52cc4000c (diff)
downloadgit-c03f77573ac4db7f549948c4c0de4fa3c9eb545c.zip
git-c03f77573ac4db7f549948c4c0de4fa3c9eb545c.tar.gz
git-c03f77573ac4db7f549948c4c0de4fa3c9eb545c.tar.bz2
git-remote: no longer silent on unknown commands.
Signed-off-by: Quy Tonthat <qtonthat@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-remote.perl')
-rwxr-xr-xgit-remote.perl7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-remote.perl b/git-remote.perl
index 059c141..fc055b6 100755
--- a/git-remote.perl
+++ b/git-remote.perl
@@ -274,4 +274,9 @@ elsif ($ARGV[0] eq 'add') {
}
add_remote($ARGV[1], $ARGV[2]);
}
-
+else {
+ print STDERR "Usage: git remote\n";
+ print STDERR " git remote add <name> <url>\n";
+ print STDERR " git remote show <name>\n";
+ exit(1);
+}