mirror of
https://github.com/thegeeklab/git-sv.git
synced 2024-11-21 12:00:40 +00:00
fix: use filepath.Join to append path and file on validate-commit-message command
This commit is contained in:
parent
e67ae6c859
commit
221d7cd8a7
@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
"sv4git/sv"
|
||||
@ -375,7 +376,7 @@ func validateCommitMessageHandler(git sv.Git, messageProcessor sv.MessageProcess
|
||||
return nil
|
||||
}
|
||||
|
||||
filepath := fmt.Sprintf("%s/%s", c.String("path"), c.String("file"))
|
||||
filepath := filepath.Join(c.String("path"), c.String("file"))
|
||||
|
||||
commitMessage, err := readFile(filepath)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user