Skip to content

Commit b2a00cc

Browse files
committed
make-snapshot: Export ChangeLog from the source directory
1 parent ffd2c5a commit b2a00cc

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tool/make-snapshot

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,12 @@ def package(vcs, rev, destdir, tmp = nil)
394394
end
395395
end
396396

397-
Dir.chdir(v) do
398-
unless File.exist?("ChangeLog")
399-
vcs.export_changelog(url, nil, revision, "ChangeLog")
400-
end
397+
changelog = File.join(v, "ChangeLog")
398+
unless File.exist?(changelog)
399+
vcs.export_changelog(url, nil, revision, changelog)
400+
end
401401

402+
Dir.chdir(v) do
402403
unless touch_all(modified, "**/*", File::FNM_DOTMATCH)
403404
modified = nil
404405
colors = %w[red yellow green cyan blue magenta]

0 commit comments

Comments
 (0)