gcc-changelog: Change parse_git_revisions strict argument to True.
authorMartin Liska <mliska@suse.cz>
Wed, 4 Nov 2020 09:57:28 +0000 (10:57 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 4 Nov 2020 10:01:58 +0000 (11:01 +0100)
Change the default that is used by GIT server hook and also
by git_update_version.py. Both should use True now.

contrib/ChangeLog:

* gcc-changelog/git_repository.py: Set strict=True
for parse_git_revisions as a default.

contrib/gcc-changelog/git_repository.py

index 90edc3ce3d896ed2914ce96e575aa98777b52dc7..8edcff91ad6720bf33e85a86102ac9b6ed6d2357 100755 (executable)
@@ -29,7 +29,7 @@ except ImportError:
 from git_commit import GitCommit, GitInfo
 
 
-def parse_git_revisions(repo_path, revisions, strict=False):
+def parse_git_revisions(repo_path, revisions, strict=True):
     repo = Repo(repo_path)
 
     def commit_to_info(commit):