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