Permalink
Browse files

gl-mirror-shell learns '-h'

  • Loading branch information...
1 parent d9ae3ed commit 1019b431ef6fabfac3aeeb7ba317d7e3a562441f @sitaramc committed Feb 27, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/gl-mirror-shell
View
@@ -39,6 +39,11 @@ die "fatal: GL_HOSTNAME not set in rc; mirroring disabled\n" unless $GL_HOSTNAME
# ----------------------------------------------------------------------------
+die "please read the gitolite mirroring documentation; this program is too
+critical for you to just run it based on a 'usage' message.\n" if not @ARGV or $ARGV[0] eq '-h';
+
+# ----------------------------------------------------------------------------
+
# deal with local invocations first
# on the "master", run from a shell, for one specific repo, with an optional
@@ -77,8 +82,6 @@ if ( ($ARGV[0] || '') eq 'request-push' and not $ENV{SSH_ORIGINAL_COMMAND} ) {
exit 0;
}
-unless (@ARGV) { print STDERR "fatal: missing command\n"; exit 1; }
-
# ----------
# now the remote invocations; log it, then get the sender name

0 comments on commit 1019b43

Please sign in to comment.