From 4cb6f3e943bf943d29ab4c0d39261181b88646a2 Mon Sep 17 00:00:00 2001 From: "J.R. Garcia" Date: Wed, 29 Jul 2015 23:32:24 -0500 Subject: [PATCH] Remove trailing slash from lock Lock command will remove trailing slash from path (as it is invalid). Fixes #1136. --- command/lock.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/lock.go b/command/lock.go index cf2d5d8db343..366a273eb7c9 100644 --- a/command/lock.go +++ b/command/lock.go @@ -100,6 +100,7 @@ func (c *LockCommand) Run(args []string) int { return 1 } prefix := extra[0] + prefix = strings.TrimPrefix(prefix, "/") script := strings.Join(extra[1:], " ") // Calculate a session name if none provided