Skip to content

Commit a7da4de

Browse files
authored
Merge pull request #1225 from wakatime/develop
Release v1.130.1
2 parents 0365e08 + 6c9eada commit a7da4de

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)