* Defaulting fetch to origin when set in the repo-config
@ 2006-07-22 22:54 Santi Béjar
2006-07-24 7:31 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Santi Béjar @ 2006-07-22 22:54 UTC (permalink / raw)
To: git
Signed-off-by: Santi Béjar <sbejar@gmail.com>
---
diff --git a/git-fetch.sh b/git-fetch.sh
index a393a50..c2eebee 100755
--- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-24 7:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-22 22:54 Defaulting fetch to origin when set in the repo-config Santi Béjar
2006-07-24 7:31 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).