Commit 6d6eefa0e201953818592962b723c3ee4e5d0c5a
1 parent
da48ca58
Exists in
master
and in
4 other branches
fix remove repo
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/gitosis.rb
@@ -42,7 +42,7 @@ class Gitosis | @@ -42,7 +42,7 @@ class Gitosis | ||
42 | end | 42 | end |
43 | 43 | ||
44 | def destroy_project(project) | 44 | def destroy_project(project) |
45 | - `rm -Rf #{project.path_to_repo}` | 45 | + `sudo -u git rm -Rf #{project.path_to_repo}` |
46 | 46 | ||
47 | conf = IniFile.new(File.join(@local_dir,'gitosis','gitosis.conf')) | 47 | conf = IniFile.new(File.join(@local_dir,'gitosis','gitosis.conf')) |
48 | 48 |