Ensure changelog filenames are less than 99 characters long

Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
This commit is contained in:
Balasankar "Balu" C 2019-08-13 11:12:26 +05:30
parent 943dbeffab
commit 9ab5346eeb
No known key found for this signature in database
GPG key ID: B77D2E2E23735427
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ module ChangelogHelpers
Abort = 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)
output = IO.popen(cmd, &:read)

View file

@ -15,7 +15,7 @@ describe 'bin/changelog' do
allow(entry).to receive(:branch_name).and_return('long-branch-' * 100)
file_path = entry.send(:file_path)
expect(file_path.length).to eq(140)
expect(file_path.length).to eq(99)
end
end