From bd5bd5a444b29716a2f335d421ab24477a1d4ec8 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 4 Nov 2022 20:55:59 +0100 Subject: [PATCH] Don't reset the .gitattributes file Just change it if it existed before --- lib/git_exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git_exporter.py b/lib/git_exporter.py index 11780e2..edb9b97 100644 --- a/lib/git_exporter.py +++ b/lib/git_exporter.py @@ -116,8 +116,8 @@ class GitExporter: assert flat.parent2.git_commit parents.append(flat.parent2.git_commit) - # Overwrite ".gitattributes" with the - self.git.add_default_lfs_gitattributes(force=True) + # create file if not existant + self.git.add_default_lfs_gitattributes(force=False) to_download, to_delete = flat.commit.calc_delta(branch_state[flat.branch]) for file in to_delete: