From 21b92381f4e5bd9eeadbcd202d37937d0d9cf113 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Fri, 3 Jun 2016 14:59:13 -0600 Subject: [PATCH] commands/lock: properly trim prefix from lock path --- commands/command_lock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {