commands: trim path separator on windows too

This commit is contained in:
risk danger olson 2017-02-10 15:08:25 -07:00
parent e6d44cb2be
commit c85068a284

@ -72,7 +72,7 @@ func lockPath(file string) (string, error) {
abs := filepath.Join(wd, file)
path := strings.TrimPrefix(abs, repo)
path = strings.TrimPrefix(path, "/")
path = strings.TrimPrefix(path, os.PathSeparator)
if stat, err := os.Stat(abs); err != nil {
return path, err
} else {