Skip to content

Commit

Permalink
fix: use absolute paths when concatting remote source dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Jun 6, 2024
1 parent bad8cd8 commit cd2cc18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/lefthook/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func (l *Lefthook) Run(hookName string, args RunArgs, gitArgs []string) error {
sourceDirs = append(
sourceDirs,
filepath.Join(
l.repo.RootPath,
l.repo.RemoteFolder(remote.GitURL, remote.Ref),
cfg.SourceDir,
),
Expand Down

0 comments on commit cd2cc18

Please sign in to comment.