Commit 4ae32050 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 0f93610c 38d57a61
...@@ -53,7 +53,7 @@ be able to advance workflow states consistently in issues themselves. ...@@ -53,7 +53,7 @@ be able to advance workflow states consistently in issues themselves.
## Creating labels ## Creating labels
>**Note:** >**Note:**
A permission level of `Developer` or higher is required to create labels. A permission level of Reporter or higher is required to create labels.
### New project label ### New project label
...@@ -91,7 +91,7 @@ From the sidebar of an issue or a merge request, you can create a new **project ...@@ -91,7 +91,7 @@ From the sidebar of an issue or a merge request, you can create a new **project
## Editing labels ## Editing labels
NOTE: **Note:** NOTE: **Note:**
A permission level of `Developer` or higher is required to edit labels. A permission level of Reporter or higher is required to edit labels.
You can update a label by navigating to **Issues > Labels** in the project or group and clicking the pencil icon. You can update a label by navigating to **Issues > Labels** in the project or group and clicking the pencil icon.
......
...@@ -251,7 +251,7 @@ module QA ...@@ -251,7 +251,7 @@ module QA
end end
def netrc_already_contains_content? def netrc_already_contains_content?
read_netrc_content.grep(/^#{netrc_content}$/).any? read_netrc_content.grep(/^#{Regexp.escape(netrc_content)}$/).any?
end end
end end
end end
......
...@@ -116,6 +116,15 @@ describe QA::Git::Repository do ...@@ -116,6 +116,15 @@ describe QA::Git::Repository do
expect(File.read(File.join(tmp_netrc_dir, '.netrc'))) expect(File.read(File.join(tmp_netrc_dir, '.netrc')))
.to eq("machine foo login user password foo\n") .to eq("machine foo login user password foo\n")
end end
it 'adds credentials with special characters' do
password = %q[!"#$%&')(*+,-./:;<=>?]
repository.username = 'user'
repository.password = password
expect(File.read(File.join(tmp_netrc_dir, '.netrc')))
.to eq("machine foo login user password #{password}\n")
end
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment