projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trivial: clarify, what are the config's user.name and user.email about
[git.git]
/
git-fetch.sh
diff --git
a/git-fetch.sh
b/git-fetch.sh
index
6586e77
..
125bcea
100755
(executable)
--- a/
git-fetch.sh
+++ b/
git-fetch.sh
@@
-1,6
+1,8
@@
#!/bin/sh
#
#!/bin/sh
#
-. git-sh-setup || die "Not a git archive"
+
+USAGE='<fetch-options> <repository> <refspec>...'
+. 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"
. 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
;;
-v|--verbose)
verbose=Yes
;;
+ -*)
+ usage
+ ;;
*)
break
;;
*)
break
;;
@@
-187,7
+192,7
@@
then
sed -e '
/\^/d
s/^[^ ]* //
sed -e '
/\^/d
s/^[^ ]* //
- s/.*/&:&/')
+ s/.*/
.
&:&/')
if test "$#" -gt 1
then
# remote URL plus explicit refspecs; we need to merge them.
if test "$#" -gt 1
then
# remote URL plus explicit refspecs; we need to merge them.