Skip to content

Commit

Permalink
Defaulting fetch to origin when set in the repo-config
Browse files Browse the repository at this point in the history
Signed-off-by: Santi Béjar <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
sbejar authored and Junio C Hamano committed Jul 24, 2006
1 parent ce43697 commit 5e27e27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5e27e27

Please sign in to comment.