diff --git a/git-fetch.sh b/git-fetch.sh index b6a223ee46..f7167abdf0 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