diff --git a/lib/gitosis.rb b/lib/gitosis.rb index 59b3f2a2..1dd87c0a 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'))