diff --git a/internal/git/repository.go b/internal/git/repository.go index cb3e32f..a9d4ce1 100644 --- a/internal/git/repository.go +++ b/internal/git/repository.go @@ -17,7 +17,9 @@ type ( ) func GetInfo(repoDir string) (*RepositoryInfo, error) { - repo, err := git.PlainOpen(repoDir) + repo, err := git.PlainOpenWithOptions(repoDir, &git.PlainOpenOptions{ + DetectDotGit: true, + }) if err != nil { return nil, fmt.Errorf("failed to open git repo: %w", err) }