diff --git a/commands/command_lock.go b/commands/command_lock.go index 62eb62e3..ed6e27d6 100644 --- a/commands/command_lock.go +++ b/commands/command_lock.go @@ -42,7 +42,7 @@ func lockCommand(cmd *cobra.Command, args []string) { return } - Print("\n'%s' was locked (%s)", args[0], lock.Id) + Print("Locked %s", args[0]) } // lockPaths relativizes the given filepath such that it is relative to the root diff --git a/commands/command_unlock.go b/commands/command_unlock.go index fc4f9e06..2a9601ff 100644 --- a/commands/command_unlock.go +++ b/commands/command_unlock.go @@ -61,7 +61,7 @@ func unlockCommand(cmd *cobra.Command, args []string) { } return } - Print("'%s' was unlocked", args[0]) + Print("Unlocked %s", args[0]) } func unlockAbortIfFileModified(path string) { diff --git a/test/test-lock.sh b/test/test-lock.sh index 11e3f589..4f969a1d 100755 --- a/test/test-lock.sh +++ b/test/test-lock.sh @@ -36,7 +36,7 @@ begin_test "creating a lock (with output)" setup_remote_repo_with_file "$reponame" "a_output.dat" git lfs lock "a_output.dat" | tee lock.log - grep "'a_output.dat' was locked" lock.log + grep "Locked a_output.dat" lock.log id=$(grep -oh "\((.*)\)" lock.log | tr -d \(\)) assert_server_lock "$reponame" "$id" )