aboutsummaryrefslogtreecommitdiffstats
path: root/repository
diff options
context:
space:
mode:
authorAlec Lanter <kintar1900@gmail.com>2023-01-23 10:12:46 -0600
committerAlec Lanter <kintar1900@gmail.com>2023-01-23 10:12:46 -0600
commitd9ac658392cc09d42928f68a60b0e337f7dc7d04 (patch)
treecb7e5cb20dd5ce1c49809a10a3ef6b04cb09c159 /repository
parent70f405e7b15148ba0c3de89355b7dd5cb3befa60 (diff)
downloadgit-bug-d9ac658392cc09d42928f68a60b0e337f7dc7d04.tar.gz
chore: updated error message when detectGitPath fails
Diffstat (limited to 'repository')
-rw-r--r--repository/gogit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repository/gogit.go b/repository/gogit.go
index 649614fb..01eace6d 100644
--- a/repository/gogit.go
+++ b/repository/gogit.go
@@ -192,7 +192,7 @@ func detectGitPath(path string) (string, error) {
dotContent = strings.TrimSpace(strings.TrimPrefix(dotContent, "gitdir: "))
return dotContent, nil
}
- return "", fmt.Errorf(".git exist but is not a directory")
+ return "", fmt.Errorf(".git exist but is not a directory or module/workspace file")
}
return filepath.Join(path, ".git"), nil
}