diff --git a/util/file.go b/util/file.go index e93521d..184c0e3 100644 --- a/util/file.go +++ b/util/file.go @@ -130,7 +130,7 @@ func GetRepoNameFromConfig(path string) (string, error) { gitPath := filepath.Join(path, ".git") info, err := os.Stat(gitPath) - if err != nil && !info.IsDir() { + if err != nil && info != nil && !info.IsDir() { return "", fmt.Errorf("could not find .git directory: %w", err) }