summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVSizov <fk@sphere.com>2011-10-22 13:50:02 +0300
committerVSizov <fk@sphere.com>2011-10-22 13:50:02 +0300
commit6d6eefa0e201953818592962b723c3ee4e5d0c5a (patch)
tree0bd82c18af078b6ed336500c15ea84e8f72218c2
parentda48ca58914264cd58cf5e3863e9256d61b00d6a (diff)
downloadgitlab-ce-6d6eefa0e201953818592962b723c3ee4e5d0c5a.tar.gz
fix remove repo
-rw-r--r--lib/gitosis.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitosis.rb b/lib/gitosis.rb
index 59b3f2a2c8f..1dd87c0abe4 100644
--- a/lib/gitosis.rb
+++ b/lib/gitosis.rb
@@ -42,7 +42,7 @@ class Gitosis
end
def destroy_project(project)
- `rm -Rf #{project.path_to_repo}`
+ `sudo -u git rm -Rf #{project.path_to_repo}`
conf = IniFile.new(File.join(@local_dir,'gitosis','gitosis.conf'))