From b78e4423f098ba1f04aee85e8313286617c789da Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 25 Mar 2020 19:27:46 +0100 Subject: [PATCH] generator: drop platform-specific separator Co-Authored-By: Lauris BH --- internal/code-generator/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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