Skip to content

Commit

Permalink
Fix working directory in capture (#457)
Browse files Browse the repository at this point in the history
The working directory passed to `run` should be the parameter `path`,
not `local_path`.
  • Loading branch information
f-fr committed Jan 21, 2021
1 parent 03d9b2f commit 9f0f03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/git.cr
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ module Shards
end

private def capture(command, path = local_path)
run(command, capture: true, path: local_path).not_nil!
run(command, capture: true, path: path).not_nil!
end

private def run(command, path = local_path, capture = false)
Expand Down

0 comments on commit 9f0f03d

Please sign in to comment.