mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-21 02:26:12 +10:00
Merge branch '6-4-stable' of dev.gitlab.org:gitlab/gitlabhq into 6-4-from-ce
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: VERSION
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
.title Transfer project
|
||||
.errors-holder
|
||||
.form-holder
|
||||
= form_for(@project, url: transfer_project_path(@project), remote: true, html: { class: 'transfer-project' }) do |f|
|
||||
= form_for(@project, url: transfer_project_path(@project), method: :put, remote: true, html: { class: 'transfer-project' }) do |f|
|
||||
.control-group
|
||||
= f.label :namespace_id do
|
||||
%span Namespace
|
||||
|
||||
@@ -19,3 +19,8 @@ Feature: Project Feature
|
||||
And change project settings
|
||||
And I save project
|
||||
Then I should see project with new settings
|
||||
|
||||
Scenario: I change project path
|
||||
When I visit edit project "Shop" page
|
||||
And change project path settings
|
||||
Then I should see project with new path settings
|
||||
|
||||
@@ -3,16 +3,25 @@ class ProjectFeature < Spinach::FeatureSteps
|
||||
include SharedProject
|
||||
include SharedPaths
|
||||
|
||||
And 'change project settings' do
|
||||
step 'change project settings' do
|
||||
fill_in 'project_name', with: 'NewName'
|
||||
uncheck 'project_issues_enabled'
|
||||
end
|
||||
|
||||
And 'I save project' do
|
||||
step 'I save project' do
|
||||
click_button 'Save changes'
|
||||
end
|
||||
|
||||
Then 'I should see project with new settings' do
|
||||
step 'I should see project with new settings' do
|
||||
find_field('project_name').value.should == 'NewName'
|
||||
end
|
||||
|
||||
step 'change project path settings' do
|
||||
fill_in "project_path", with: "new-path"
|
||||
click_button "Rename"
|
||||
end
|
||||
|
||||
step 'I should see project with new path settings' do
|
||||
project.path.should == "new-path"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user