diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-08 01:56:57 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-08 01:56:57 +0400 |
commit | d68ec5e0fb156e56c2e057eefe2e473d72d44c1f (patch) | |
tree | 0ced51dbab6f99f8fea1004ef2b2f658174b4f92 /lib | |
parent | 2552a877df7fdb2c0a17a88479a5e49f315bcbad (diff) |
default_branch for project & fixed project destroy
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlabhq/gitolite.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlabhq/gitolite.rb b/lib/gitlabhq/gitolite.rb index 10ab87bdaf8..e79afb55577 100644 --- a/lib/gitlabhq/gitolite.rb +++ b/lib/gitlabhq/gitolite.rb @@ -42,7 +42,7 @@ module Gitlabhq end def destroy_project(project) - `sudo -u git rm -rf #{project.path_to_repo}` + FileUtils.rm_rf(project.path_to_repo) ga_repo = ::Gitolite::GitoliteAdmin.new(File.join(@local_dir,'gitolite')) conf = ga_repo.config |