projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce43697
)
Defaulting fetch to origin when set in the repo-config
author
Santi Béjar
<sbejar@gmail.com>
Sat, 22 Jul 2006 22:54:40 +0000
(
00:54
+0200)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 24 Jul 2006 07:32:24 +0000
(
00:32
-0700)
Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh
patch
|
blob
|
history
diff --git
a/git-fetch.sh
b/git-fetch.sh
index b6a223ee466b69c58027cd0100508e2630fed598..f7167abdf09c815fc8614b47ded0c6bc4518d6f8 100755
(executable)
--- a/
git-fetch.sh
+++ b/
git-fetch.sh
@@
-70,7
+70,8
@@
case "$#" in
0)
test -f "$GIT_DIR/branches/origin" ||
test -f "$GIT_DIR/remotes/origin" ||
- die "Where do you want to fetch from today?"
+ git-repo-config --get remote.origin.url >/dev/null ||
+ die "Where do you want to fetch from today?"
set origin ;;
esac