diff options
Diffstat (limited to 'git-fetch-script')
-rwxr-xr-x | git-fetch-script | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git-fetch-script b/git-fetch-script index 9b05e4117..a70909e4f 100755 --- a/git-fetch-script +++ b/git-fetch-script @@ -8,7 +8,10 @@ _x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40" append= case "$#" in 0) - die "Where do you want to fetch from?" ;; + test -f "$GIT_DIR/branches/origin" || + test -f "$GIT_DIR/remotes/origin" || + die "Where do you want to fetch from?" + set origin ;; *) case "$1" in -a|--a|--ap|--app|--appe|--appen|--append) |