Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion gitcmds/gitcmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -3128,7 +3128,9 @@ func GetIssueDescription(notes []string) (string, error) {

// OpenGitRepository opens a git repository at the specified directory
func OpenGitRepository(dir string) (*goGitPkg.Repository, error) {
repo, err := goGitPkg.PlainOpen(dir)
repo, err := goGitPkg.PlainOpenWithOptions(dir, &goGitPkg.PlainOpenOptions{
DetectDotGit: true,
})
if err != nil {
if errors.Is(err, goGitPkg.ErrRepositoryNotExists) {
return nil, errors.New("no .git directory found; please run this command inside a git repository")
Expand Down
Loading