effkay / blazing

painless git push deployments for everyone
MIT License
80 stars 12 forks source link

Missing single quotes in set_hook_permissions #72

Closed davebaldwin closed 11 years ago

davebaldwin commented 11 years ago

Without the single quotes ssh wasn't executing the command remotely but locally where it failed as the local directory structure is different from the remote directory structure.

Dave

def set_hook_permissions if @target.host @shell.run "ssh #{@target.user}@#{@target.host} '#{make_hook_executable}'" else @shell.run "#{make_hook_executable}" end end