X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=inline;f=git-fetch.sh;h=125bcea1b6e9eef4e7f59f5f1ce511ad8fc3d43e;hb=50b4e0c178777a27164eb67676593255a9cbd035;hp=6586e773e6b3979463d5cc6537e6ddc5700de25a;hpb=302ebfe52192fff9a2c1c612dff22325fd073acc;p=git.git diff --git a/git-fetch.sh b/git-fetch.sh index 6586e773..125bcea1 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -1,6 +1,8 @@ #!/bin/sh # -. git-sh-setup || die "Not a git archive" + +USAGE=' ...' +. git-sh-setup . git-parse-remote _x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]' _x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40" @@ -34,6 +36,9 @@ do -v|--verbose) verbose=Yes ;; + -*) + usage + ;; *) break ;; @@ -187,7 +192,7 @@ then sed -e ' /\^/d s/^[^ ]* // - s/.*/&:&/') + s/.*/.&:&/') if test "$#" -gt 1 then # remote URL plus explicit refspecs; we need to merge them.