Skip to content

Commit

Permalink
Add common dir config for supporting git worktrees
Browse files Browse the repository at this point in the history
  • Loading branch information
jradtilbrook committed Apr 25, 2024
1 parent 9af0c19 commit d43348f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/pipeline/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func filterPipelines(repoURLs []string, org string, client *buildkite.Client) ([
gitUrl := u[strings.LastIndex(u, "/")+1:]
if strings.Contains(*p.Repository, gitUrl) {
currentPipelines = append(currentPipelines, *p.Slug)

}
}
}
Expand All @@ -54,7 +53,7 @@ func getRepoURLs(path string) ([]string, error) {
if len(path) > 0 {
searchPath = path
}
r, err := git.PlainOpenWithOptions(searchPath, &git.PlainOpenOptions{DetectDotGit: true})
r, err := git.PlainOpenWithOptions(searchPath, &git.PlainOpenOptions{DetectDotGit: true, EnableDotGitCommonDir: true})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d43348f

Please sign in to comment.