commands/lock: properly trim prefix from lock path
This commit is contained in:
parent
c78356173c
commit
21b92381f4
@ -79,7 +79,7 @@ func lockPath(file string) (string, error) {
|
||||
|
||||
abs := filepath.Join(wd, file)
|
||||
|
||||
return strings.TrimPrefix(repo, abs), nil
|
||||
return strings.TrimPrefix(abs, repo), nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
Loading…
Reference in New Issue
Block a user