diff options
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-x | git-fetch.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/git-fetch.sh b/git-fetch.sh index d230995f6e..59bee5db0f 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -386,8 +386,15 @@ fetch_main () { ( : subshell because we muck with IFS IFS=" $LF" ( + if test -f "$remote" ; then + test -n "$shallow_depth" && + die "shallow clone with bundle is not supported" + git-bundle unbundle "$remote" $rref || + echo failed "$remote" + else git-fetch-pack --thin $exec $keep $shallow_depth "$remote" $rref || echo failed "$remote" + fi ) | ( trap ' |