summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-31 15:39:28 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-31 15:39:28 +0300
commit43d570e0ce74d70f046edd84b5c104956eee859c (patch)
treeb06f2995d5e45d09f9c4a182c467706d3f633114 /app
parentf82b9e48ec038a3718aeeeb248b0a01c9f88fa33 (diff)
downloadgitlab-ce-43d570e0ce74d70f046edd84b5c104956eee859c.tar.gz
Fix 500 error when rename repository. Fixes #1473
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 0e93e32162d..a24eae7d26b 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -494,6 +494,7 @@ class Project < ActiveRecord::Base
end
def rename_repo
+ path_was = previous_changes['path'].first
old_path_with_namespace = File.join(namespace_dir, path_was)
new_path_with_namespace = File.join(namespace_dir, path)