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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
37e3f207
Commit
37e3f207
authored
Mar 14, 2018
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Choose shortest match for CE branch in ee-files-location-check.
Closes #5271.
parent
5ea0fbfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/ee-files-location-check
scripts/ee-files-location-check
+1
-1
No files found.
scripts/ee-files-location-check
View file @
37e3f207
...
@@ -32,7 +32,7 @@ branch_to_fetch = 'master'
...
@@ -32,7 +32,7 @@ branch_to_fetch = 'master'
if
ls_remote_output
.
include?
(
minimal_ce_branch_name
)
if
ls_remote_output
.
include?
(
minimal_ce_branch_name
)
remote_to_fetch
=
ce_repo_url
remote_to_fetch
=
ce_repo_url
branch_to_fetch
=
ls_remote_output
.
s
plit
(
"refs/heads/"
).
last
.
strip
branch_to_fetch
=
ls_remote_output
.
s
can
(
%r{(?<=refs/heads/).+}
).
sort_by
(
&
:size
).
first
puts
puts
puts
"💪 We found the branch '
#{
branch_to_fetch
}
' in the
#{
ce_repo_url
}
repository. We will fetch it."
puts
"💪 We found the branch '
#{
branch_to_fetch
}
' in the
#{
ce_repo_url
}
repository. We will fetch it."
else
else
...
...
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