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
9ab5346e
Commit
9ab5346e
authored
Aug 13, 2019
by
Balasankar "Balu" C
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure changelog filenames are less than 99 characters long
Signed-off-by:
Balasankar "Balu" C
<
balasankar@gitlab.com
>
parent
943dbeff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
bin/changelog
bin/changelog
+1
-1
spec/bin/changelog_spec.rb
spec/bin/changelog_spec.rb
+1
-1
No files found.
bin/changelog
View file @
9ab5346e
...
@@ -23,7 +23,7 @@ module ChangelogHelpers
...
@@ -23,7 +23,7 @@ module ChangelogHelpers
Abort
=
Class
.
new
(
StandardError
)
Abort
=
Class
.
new
(
StandardError
)
Done
=
Class
.
new
(
StandardError
)
Done
=
Class
.
new
(
StandardError
)
MAX_FILENAME_LENGTH
=
140
# ecryptfs has a limit of 140 characters
MAX_FILENAME_LENGTH
=
99
# GNU tar has a 99 character limit
def
capture_stdout
(
cmd
)
def
capture_stdout
(
cmd
)
output
=
IO
.
popen
(
cmd
,
&
:read
)
output
=
IO
.
popen
(
cmd
,
&
:read
)
...
...
spec/bin/changelog_spec.rb
View file @
9ab5346e
...
@@ -15,7 +15,7 @@ describe 'bin/changelog' do
...
@@ -15,7 +15,7 @@ describe 'bin/changelog' do
allow
(
entry
).
to
receive
(
:branch_name
).
and_return
(
'long-branch-'
*
100
)
allow
(
entry
).
to
receive
(
:branch_name
).
and_return
(
'long-branch-'
*
100
)
file_path
=
entry
.
send
(
:file_path
)
file_path
=
entry
.
send
(
:file_path
)
expect
(
file_path
.
length
).
to
eq
(
140
)
expect
(
file_path
.
length
).
to
eq
(
99
)
end
end
end
end
...
...
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