Skip to content

Commit

Permalink
This was never used/referenced anywhere. (And we’re about to refactor…
Browse files Browse the repository at this point in the history
… some of this anyway.)
  • Loading branch information
jesseleite committed Nov 6, 2024
1 parent a34c6bc commit 231f1a7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions namer/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@ import (
"strings"
)

func gitBareRootName(n *RealNamer, path string) (string, error) {
isGit, commonDir, _ := n.git.GitCommonDir(path)
if isGit && strings.HasSuffix(commonDir, "/.bare") {
topLevelDir := strings.TrimSuffix(commonDir, "/.bare")
name, err := n.home.ShortenHome(topLevelDir)
if err != nil {
return "", fmt.Errorf("couldn't shorten path: %q", err)
}
return name, nil
} else {
return "", nil
}
}

// Gets the name from a git bare repository
func gitBareName(n *RealNamer, path string) (string, error) {
var name string
Expand Down

0 comments on commit 231f1a7

Please sign in to comment.