Add support for git-http-push to git-push script
[gitweb.git] / git-pull.sh
index 96016270b4a1746ac1f075ed9fbcf62e754005e8..2358af62d5eb008ef3d04de67cea7a56aab16526 100755 (executable)
@@ -7,7 +7,14 @@
 . git-sh-setup || die "Not a git archive"
 
 usage () {
-    die "git pull [-n] [-s strategy]... <repo> <head>..."
+    echo >&2 "usage: $0"' [-n] [--no-commit] [--no-summary] [--help]
+    [-s strategy]...
+    [<fetch-options>]
+    <repo> <head>...
+
+Fetch one or more remote refs and merge it/them into the current HEAD.
+'
+    exit 1
 }
 
 strategy_args= no_summary= no_commit=
@@ -33,6 +40,9 @@ do
                esac
                strategy_args="${strategy_args}-s $strategy "
                ;;
+       -h|--h|--he|--hel|--help)
+               usage
+               ;;
        -*)
                # Pass thru anything that is meant for fetch.
                break