Skip to content

Commit 12777c3

Browse files
committed
Detect git project when only have project folder
1 parent 3d94590 commit 12777c3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/project/git.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ func (g Git) Detect(ctx context.Context) (Result, bool, error) {
2929
logger := log.Extract(ctx)
3030
fp := g.Filepath
3131

32-
// Take only the directory
33-
if fileOrDirExists(fp) {
34-
fp = filepath.Dir(fp)
35-
}
36-
3732
// Find for submodule takes priority if enabled
3833
gitdirSubmodule, ok, err := findSubmodule(ctx, fp, g.SubmoduleDisabledPatterns)
3934
if err != nil {

0 commit comments

Comments
 (0)