Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
cd78e020
Commit
cd78e020
authored
Nov 22, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure we sanitize branch names with path-unfriendly characters
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
b8980e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/gitlab/ee_compat_check.rb
lib/gitlab/ee_compat_check.rb
+6
-2
No files found.
lib/gitlab/ee_compat_check.rb
View file @
cd78e020
...
...
@@ -149,7 +149,7 @@ module Gitlab
end
def
ce_patch_name
@ce_patch_name
||=
"
#{
ce_branch
}
.patch"
@ce_patch_name
||=
patch_name_from_branch
(
ce_branch
)
end
def
ce_patch_full_path
...
...
@@ -161,13 +161,17 @@ module Gitlab
end
def
ee_patch_name
@ee_patch_name
||=
"
#{
ee_branch
}
.patch"
@ee_patch_name
||=
patch_name_from_branch
(
ee_branch
)
end
def
ee_patch_full_path
@ee_patch_full_path
||=
patches_dir
.
join
(
ee_patch_name
)
end
def
patch_name_from_branch
(
branch_name
)
branch_name
.
parameterize
<<
'.patch'
end
def
step
(
desc
,
cmd
=
nil
)
puts
"
\n
=>
#{
desc
}
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment