Commit da48ca58914264cd58cf5e3863e9256d61b00d6a

Authored by Valery Sizov
1 parent c463eeb0

Issue #135 - Repository stay after project remove

Showing 2 changed files with 3 additions and 1 deletions   Show diff stats
@@ -32,6 +32,8 @@ sqlite as default db @@ -32,6 +32,8 @@ sqlite as default db
32 32
33 # install this library first 33 # install this library first
34 sudo easy_install pygments 34 sudo easy_install pygments
  35 +
  36 + echo "gitlabhq ALL = (git) NOPASSWD: /bin/rm" | sudo tee -a /etc/sudoers
35 37
36 sudo gem install bundler 38 sudo gem install bundler
37 bundle 39 bundle
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 - FileUtils.rm_rf(project.path_to_repo) 45 + `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