diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-23 13:19:13 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-23 13:19:13 +0200 |
commit | b8b8a34b524fc38c194973d298ca24a0769c27a6 (patch) | |
tree | 20a2bcd88c2e485a2f470473fb062d5c648776b6 /app/contexts | |
parent | 25d793eac5a85c83985a59f1e80be59cb4882457 (diff) | |
download | gitlab-ce-b8b8a34b524fc38c194973d298ca24a0769c27a6.tar.gz |
Fix 500 error when rename repository
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/contexts')
-rw-r--r-- | app/contexts/projects/update_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/contexts/projects/update_context.rb b/app/contexts/projects/update_context.rb index ed0d451a31a..94de10de0f6 100644 --- a/app/contexts/projects/update_context.rb +++ b/app/contexts/projects/update_context.rb @@ -9,7 +9,7 @@ module Projects new_branch = params[:project].delete(:default_branch) - if project.repository.exists? && new_branch != project.default_branch + if project.repository.exists? && new_branch && new_branch != project.default_branch project.change_head(new_branch) end |