diff options
author | mrsdizzie <info@mrsdizzie.com> | 2019-03-26 15:59:48 -0400 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-03-26 21:59:48 +0200 |
commit | d056bf300ff5ebd89d8b0035722c94a3b08ac745 (patch) | |
tree | 731708f1ddc55c1c406b5c7670a998e827e0cecc /integrations | |
parent | b4941f707b0fd950fc2a0b12b34fbc37206e23dd (diff) | |
download | gitea-d056bf300ff5ebd89d8b0035722c94a3b08ac745.tar.gz gitea-d056bf300ff5ebd89d8b0035722c94a3b08ac745.zip |
Clean up ref name rules (#6437)
* Clean up ref name rules
Clean up checks on reference names to better conform to the guideline
here: https://git-scm.com/docs/git-check-ref-format
This fixes half of #6321
* Update branch create integration test
According to: https://git-scm.com/docs/git-check-ref-format
And: git check-ref-format "master/feature=test1"
This is a valid branch name and we should not be testing for it to fail.
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/repo_branch_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/repo_branch_test.go b/integrations/repo_branch_test.go index fb33778cde..3101dc4c0f 100644 --- a/integrations/repo_branch_test.go +++ b/integrations/repo_branch_test.go @@ -58,7 +58,7 @@ func TestCreateBranch(t *testing.T) { OldRefSubURL: "branch/master", NewBranch: "feature=test1", ExpectedStatus: http.StatusFound, - FlashMessage: i18n.Tr("en", "form.NewBranchName") + i18n.Tr("en", "form.git_ref_name_error"), + FlashMessage: i18n.Tr("en", "repo.branch.create_success", "feature=test1"), }, { OldRefSubURL: "branch/master", |