From abc58ff363aeac46740a1a299ebe6a53af7c76f8 Mon Sep 17 00:00:00 2001 From: Alessandro Grassi Date: Tue, 17 Jan 2017 11:09:42 +0100 Subject: [PATCH] Fix sudo error in hook installation (issue #642) Signed-off-by: Alessandro Grassi --- lib/redmine_git_hosting/commands/sudo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_git_hosting/commands/sudo.rb b/lib/redmine_git_hosting/commands/sudo.rb index 2dbccfbc8..554c6ee3e 100644 --- a/lib/redmine_git_hosting/commands/sudo.rb +++ b/lib/redmine_git_hosting/commands/sudo.rb @@ -139,7 +139,7 @@ def sudo_file_changed?(source_file, dest_file) # def sudo_capture(*params) cmd = sudo.concat(params) - capture(cmd) + capture(cmd).strip end