Fix the maintenance of .gitattributes file #17

Merged
Ghost merged 14 commits from fix_lfs_attributes into main 2022-11-07 13:26:36 +01:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit f1457e8f8e - Show all commits

View File

@ -51,6 +51,10 @@ class DBRevision:
return self.package < other.package
return self.rev < other.rev
def git_commit_message(self):
# TODO: Normalize better the commit message
return f"{self.comment}\n\n{self}"
def as_dict(self):
"""Return a dict we can put into YAML for test cases"""
ret = {

View File

@ -144,8 +144,7 @@ class GitExporter:
flat.user.realname,
flat.user.email,
flat.commit.commit_time,
# TODO: Normalize better the commit message
f"{flat.commit.comment}\n\n{flat.commit}",
flat.commit.git_commit_message(),
parents=parents,
)
flat.commit.git_commit = commit