generator: drop platform-specific separator

Co-Authored-By: Lauris BH <lauris@nix.lv>
This commit is contained in:
Alexander 2020-03-25 19:27:46 +01:00 committed by GitHub
parent 3a5f4b2db1
commit b78e4423f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ func getCommit(path string) (string, error) {
} }
if string(commit) == "ref: refs/heads/master\n" { 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) commit, err = ioutil.ReadFile(path)
if err != nil { if err != nil {
return "", err return "", err