Skip to content

Commit 75effd2

Browse files
committed
MINOR: use repoPath to search for configuration file
1 parent 65a96b9 commit 75effd2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

check-commit/check.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"io/ioutil"
77
"log"
88
"os"
9+
"path"
910
"regexp"
1011
"strings"
1112
"unicode/utf8"
@@ -326,7 +327,7 @@ func main() {
326327
repoPath = os.Args[1]
327328
}
328329

329-
commitPolicy, err := LoadCommitPolicy(".check-commit.yml")
330+
commitPolicy, err := LoadCommitPolicy(path.Join(repoPath, ".check-commit.yml"))
330331
if err != nil {
331332
log.Fatalf("error reading configuration: %s", err)
332333
}

0 commit comments

Comments
 (0)