Skip to content

Commit 452f776

Browse files
author
Alessandro Grassi
committed
Fix sudo error in hook installation (issue redmine-git-hosting#642)
Signed-off-by: Alessandro Grassi <[email protected]>
1 parent a4a24a7 commit 452f776

File tree

1 file changed

+1
-1
lines changed
  • lib/redmine_git_hosting/commands

1 file changed

+1
-1
lines changed

Diff for: lib/redmine_git_hosting/commands/sudo.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def sudo_file_changed?(source_file, dest_file)
139139
#
140140
def sudo_capture(*params)
141141
cmd = sudo.concat(params)
142-
capture(cmd)
142+
capture(cmd).strip
143143
end
144144

145145

0 commit comments

Comments
 (0)