aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStevan Radaković <stevan.radakovic@linaro.org>2013-03-31 23:34:39 +0200
committerStevan Radaković <stevan.radakovic@linaro.org>2013-03-31 23:34:39 +0200
commit14575cae184112b1a653969d9c3891df631897b7 (patch)
tree7bb2b7bd9fd65e9d9c5d34ca5b04d9eb0e11a66e
parent78f3eae06bfdd5ac7c1728f70162c13f11396e3f (diff)
Add sudo for fetch and pull.
-rwxr-xr-xscripts/rhodecode-setup4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rhodecode-setup b/scripts/rhodecode-setup
index 35af29c..00c620c 100755
--- a/scripts/rhodecode-setup
+++ b/scripts/rhodecode-setup
@@ -530,9 +530,9 @@ def update_rhodecode(tag, work_dir):
:type str
"""
cmd_args = ["git", "fetch"]
- execute_command(cmd_args, work_dir=work_dir)
+ execute_command(cmd_args, work_dir=work_dir, with_sudo=True)
cmd_args = ["git", "pull", "origin", tag]
- execute_command(cmd_args, work_dir=work_dir)
+ execute_command(cmd_args, work_dir=work_dir, with_sudo=True)
cmd_args = ["git", "checkout", tag]
execute_command(cmd_args, work_dir=work_dir, with_sudo=True)