@matheusbsbs / matheus-bagliano / commits / 5e27e27e5d
Fork 0

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>

Santi Béjar committed Jul 23, 2006 at 00:54 UTC 5e27e27e5d3da5dcbe5fbfe204c2ade0128538a5
1 file changed +2 -1
git-fetch.sh
+2 -1
@@ -70,7 +70,8 @@ case "$#" in
70 0)
71 test -f "$GIT_DIR/branches/origin" ||
72 test -f "$GIT_DIR/remotes/origin" ||
73 - die "Where do you want to fetch from today?"
73 + git-repo-config --get remote.origin.url >/dev/null ||
74 + die "Where do you want to fetch from today?"
75 set origin ;;
76 esac
77