Skip to content

Commit

Permalink
fix absolute path detection on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sauerbraten committed Jul 14, 2020
1 parent 5afdd47 commit 4b52e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (s *Set) getTemplate(path string) (t *Template, err error) {
}

func (s *Set) getSiblingTemplate(path, siblingPath string) (t *Template, err error) {
if !filepath.IsAbs(path) {
if !filepath.IsAbs(filepath.Clean(path)) {
siblingDir := filepath.Dir(siblingPath)
path = filepath.Join(siblingDir, path)
}
Expand Down

0 comments on commit 4b52e03

Please sign in to comment.