gcc-changelog: skip broken commit in git_update_version.py.
contrib/ChangeLog: * gcc-changelog/git_update_version.py: Skip one problematic commit.
This commit is contained in:
parent
82085eb3d4
commit
5f6a43d691
@ -26,6 +26,9 @@ from git_repository import parse_git_revisions
|
|||||||
|
|
||||||
current_timestamp = datetime.datetime.now().strftime('%Y%m%d\n')
|
current_timestamp = datetime.datetime.now().strftime('%Y%m%d\n')
|
||||||
|
|
||||||
|
# Skip the following commits, they cannot be correctly processed
|
||||||
|
IGNORED_COMMITS = ('c2be82058fb40f3ae891c68d185ff53e07f14f45')
|
||||||
|
|
||||||
|
|
||||||
def read_timestamp(path):
|
def read_timestamp(path):
|
||||||
with open(path) as f:
|
with open(path) as f:
|
||||||
@ -98,6 +101,7 @@ def update_current_branch():
|
|||||||
head = head.parents[1]
|
head = head.parents[1]
|
||||||
commits = parse_git_revisions(args.git_path, '%s..%s'
|
commits = parse_git_revisions(args.git_path, '%s..%s'
|
||||||
% (commit.hexsha, head.hexsha))
|
% (commit.hexsha, head.hexsha))
|
||||||
|
commits = [c for c in commits if c.info.hexsha not in IGNORED_COMMITS]
|
||||||
for git_commit in reversed(commits):
|
for git_commit in reversed(commits):
|
||||||
prepend_to_changelog_files(repo, args.git_path, git_commit,
|
prepend_to_changelog_files(repo, args.git_path, git_commit,
|
||||||
not args.dry_mode)
|
not args.dry_mode)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user