We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df36a08 commit 26bcca6Copy full SHA for 26bcca6
1 file changed
git/git.go
@@ -398,21 +398,6 @@ func GetDirFromPath(p string) (string, error) {
398
return firstLine(output), err
399
}
400
401
-func PathFromRepoRoot() string {
402
- showCmd, err := GitCommand("rev-parse", "--show-prefix")
403
- if err != nil {
404
- return ""
405
- }
406
- output, err := run.PrepareCmd(showCmd).Output()
407
408
409
410
- if path := firstLine(output); path != "" {
411
- return path[:len(path)-1]
412
413
414
-}
415
-
416
func outputLines(output []byte) []string {
417
lines := strings.TrimSuffix(string(output), "\n")
418
return strings.Split(lines, "\n")
0 commit comments