Skip to content

Commit

Permalink
Remove double call to flepath.Dir in getGitRepositorySubdir (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyVdb authored Sep 22, 2023
1 parent 87116b2 commit af7d32f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/cmd/stack/open_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ func getGitRepositorySubdir() (string, error) {
} else {
return "", fmt.Errorf("couldn't find .git directory in %s or any of its parents", current)
}

root = filepath.Dir(root)
}

pathWithoutRoot, err := filepath.Rel(root, current)
Expand Down

0 comments on commit af7d32f

Please sign in to comment.