1
0
mirror of https://github.com/git/git.git synced 2024-09-30 12:32:09 +02:00

Defaulting fetch to origin when set in the repo-config

Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Santi Béjar 2006-07-23 00:54:40 +02:00 committed by Junio C Hamano
parent ce43697379
commit 5e27e27e5d

@ -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