Skip to content

Commit

Permalink
Support relative path to script for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Abroskin committed Oct 18, 2019
1 parent 9fed54a commit 4921f60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/run_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4921f60

Please sign in to comment.