diff --git a/src/internal/git/repository.go b/src/internal/git/repository.go index 85a86d93c0..9b54d38d7a 100644 --- a/src/internal/git/repository.go +++ b/src/internal/git/repository.go @@ -99,10 +99,8 @@ func Clone(ctx context.Context, rootPath, address string, shallow bool) (*Reposi err := r.gitCloneFallback(ctx, gitURLNoRef, ref, shallow) if err != nil { return nil, err - } - return r, nil - return r, nil } + return r, nil } // If we're cloning the whole repo, we need to also fetch the other branches besides the default.