diff options
Diffstat (limited to 'pkg/prompt/pwd.go')
| -rw-r--r-- | pkg/prompt/pwd.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/pkg/prompt/pwd.go b/pkg/prompt/pwd.go index 1623a5f..969a8ce 100644 --- a/pkg/prompt/pwd.go +++ b/pkg/prompt/pwd.go @@ -116,18 +116,6 @@ func findNearestAccessiblePath(path string) string { return findNearestAccessiblePath(filepath.Dir(path)) } -//Returns empty string if `path` is not inside a Git repo. -func findRepoRootPath(path string) string { - _, err := os.Stat(filepath.Join(path, ".git")) - if err == nil { - return path - } - if path == "/" { - return "" - } - return findRepoRootPath(filepath.Dir(path)) -} - func getDirectoryField(dir Directory) string { if dir.DisplayPath == "" { return "" |
