From 9f0f03de0c260c57b454b4d916bcccf5fb227d88 Mon Sep 17 00:00:00 2001 From: Frank Fischer Date: Thu, 21 Jan 2021 13:57:48 +0000 Subject: [PATCH] Fix working directory in `capture` (#457) The working directory passed to `run` should be the parameter `path`, not `local_path`. --- src/resolvers/git.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers/git.cr b/src/resolvers/git.cr index 9af05278..d24200fb 100644 --- a/src/resolvers/git.cr +++ b/src/resolvers/git.cr @@ -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)