#265: fixed No such file or directory
This commit is contained in:
parent
6ffdddf48b
commit
b88f73a4ca
|
@ -292,7 +292,7 @@ class Project < ActiveRecord::Base
|
||||||
self.name = old_name
|
self.name = old_name
|
||||||
old_path = path
|
old_path = path
|
||||||
self.name = new_name
|
self.name = new_name
|
||||||
FileUtils.mv old_path, new_path, :force => true
|
FileUtils.mv old_path, new_path, :force => true if Dir.exists?(old_path)
|
||||||
|
|
||||||
pull_requests_old_path = File.join(APP_CONFIG['git_path'], 'pull_requests', owner.uname, old_name)
|
pull_requests_old_path = File.join(APP_CONFIG['git_path'], 'pull_requests', owner.uname, old_name)
|
||||||
if Dir.exists?(pull_requests_old_path)
|
if Dir.exists?(pull_requests_old_path)
|
||||||
|
|
Loading…
Reference in New Issue