default_branch for project & fixed project destroy
This commit is contained in:
parent
2552a877df
commit
d68ec5e0fb
7 changed files with 18 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue