We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65a96b9 commit 75effd2Copy full SHA for 75effd2
1 file changed
check-commit/check.go
@@ -6,6 +6,7 @@ import (
6
"io/ioutil"
7
"log"
8
"os"
9
+ "path"
10
"regexp"
11
"strings"
12
"unicode/utf8"
@@ -326,7 +327,7 @@ func main() {
326
327
repoPath = os.Args[1]
328
}
329
- commitPolicy, err := LoadCommitPolicy(".check-commit.yml")
330
+ commitPolicy, err := LoadCommitPolicy(path.Join(repoPath, ".check-commit.yml"))
331
if err != nil {
332
log.Fatalf("error reading configuration: %s", err)
333
0 commit comments