aboutsummaryrefslogtreecommitdiffstats
path: root/switchtower
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-08-12 20:32:23 +0000
committerJamis Buck <jamis@37signals.com>2005-08-12 20:32:23 +0000
commit6500981d608a046305898fefdcebf293553468ae (patch)
tree956a1069f16bf70d9e840610100e6233a9cd4174 /switchtower
parentcc0105cef9212dd50dd86c62168f842370014b9e (diff)
downloadrails-6500981d608a046305898fefdcebf293553468ae.tar.gz
rails-6500981d608a046305898fefdcebf293553468ae.tar.bz2
rails-6500981d608a046305898fefdcebf293553468ae.zip
Preserve +x on scripts when using darcs #1929 [Scott Barron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'switchtower')
-rw-r--r--switchtower/CHANGELOG2
-rw-r--r--switchtower/lib/switchtower/scm/darcs.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/switchtower/CHANGELOG b/switchtower/CHANGELOG
index e8681cfaeb..5447b07e07 100644
--- a/switchtower/CHANGELOG
+++ b/switchtower/CHANGELOG
@@ -1,3 +1,5 @@
*SVN*
+* Preserve +x on scripts when using darcs #1929 [Scott Barron]
+
* When executing multiline commands, use a backslash to escape the newline
diff --git a/switchtower/lib/switchtower/scm/darcs.rb b/switchtower/lib/switchtower/scm/darcs.rb
index 534a7336ad..93735446ed 100644
--- a/switchtower/lib/switchtower/scm/darcs.rb
+++ b/switchtower/lib/switchtower/scm/darcs.rb
@@ -40,7 +40,7 @@ module SwitchTower
command = <<-CMD
if [[ ! -d #{actor.release_path} ]]; then
- #{darcs} get #{configuration.repository} #{actor.release_path};
+ #{darcs} get --set-scripts-executable #{configuration.repository} #{actor.release_path};
fi
CMD
actor.run(command)