From 4921f60f794b60823ad2314124fb02c9675d8887 Mon Sep 17 00:00:00 2001 From: Alexander Abroskin Date: Fri, 18 Oct 2019 10:41:32 +0300 Subject: [PATCH] Support relative path to script for windows --- cmd/run_windows.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/run_windows.go b/cmd/run_windows.go index ce577e0a..b7d95c05 100644 --- a/cmd/run_windows.go +++ b/cmd/run_windows.go @@ -249,6 +249,8 @@ func executeScript(hooksGroup, source string, executable os.FileInfo, wg *sync.W makeExecutable(pathToExecutable) } + pathToExecutable, _ = filepath.Rel(getRootPath(), pathToExecutable) + command := exec.Command(pathToExecutable, gitArgs[:]...) if haveRunner(hooksGroup, scriptsConfigKey, executableName) {