From 9ab5346eeb7c1891a6828386334fa3e6b853a931 Mon Sep 17 00:00:00 2001 From: "Balasankar \"Balu\" C" Date: Tue, 13 Aug 2019 11:12:26 +0530 Subject: Ensure changelog filenames are less than 99 characters long Signed-off-by: Balasankar "Balu" C --- bin/changelog | 2 +- spec/bin/changelog_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/changelog b/bin/changelog index 328d9495b96..ec068d06507 100755 --- a/bin/changelog +++ b/bin/changelog @@ -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) diff --git a/spec/bin/changelog_spec.rb b/spec/bin/changelog_spec.rb index 84bbe0525e5..c3a5abf2b7a 100644 --- a/spec/bin/changelog_spec.rb +++ b/spec/bin/changelog_spec.rb @@ -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 -- cgit v1.2.1