Skip to content

Commit

Permalink
Merge pull request #82 from AlexeyMatskevich/master
Browse files Browse the repository at this point in the history
Use relative path to script/executable file
  • Loading branch information
Abroskin Alexander committed Oct 18, 2019
2 parents 448a8fe + b8108b6 commit 9fed54a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,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 9fed54a

Please sign in to comment.