diff --git a/commands/command_lock.go b/commands/command_lock.go index 8889971d..b08c98b6 100644 --- a/commands/command_lock.go +++ b/commands/command_lock.go @@ -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() {