diff --git a/internal/code-generator/main.go b/internal/code-generator/main.go index 93b752b..9b3a2a9 100644 --- a/internal/code-generator/main.go +++ b/internal/code-generator/main.go @@ -128,7 +128,7 @@ func getCommit(path string) (string, error) { } if string(commit) == "ref: refs/heads/master\n" { - path = filepath.Join(".linguist", ".git/", string(commit[5:len(commit)-1])) + path = filepath.Join(".linguist", ".git", string(commit[5:len(commit)-1])) commit, err = ioutil.ReadFile(path) if err != nil { return "", err