We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53dfa71 commit a959bceCopy full SHA for a959bce
lib/git_hosting/patches/repositories_controller_patch.rb
@@ -24,8 +24,8 @@ def edit_with_scm_settings
24
GitHostingObserver.set_update_active(false);
25
params[:repository] ||= {}
26
27
- if params[:repository_scm] == "Git"
28
- params[:repository][:url] = GitHosting.repository_path(@project)
+ if params[:repository_scm] == "Git" && @project.repository
+ params[:repository][:url] = GitHosting.repository_path(@project.repository)
29
end
30
31
if params[:repository_scm] == "Git" || @project.repository.is_a?(Repository::Git)
0 commit comments