From: Santi Béjar Date: Sat, 22 Jul 2006 22:54:40 +0000 (+0200) Subject: Defaulting fetch to origin when set in the repo-config X-Git-Tag: v1.4.2-rc2~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5e27e27e5d3da5dcbe5fbfe204c2ade0128538a5;p=git.git Defaulting fetch to origin when set in the repo-config Signed-off-by: Santi Béjar Signed-off-by: Junio C Hamano --- diff --git a/git-fetch.sh b/git-fetch.sh index b6a223ee4..f7167abdf 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