Skip to content

Commit abc713b

Browse files
lorenzo-cavazzirokroskar
authored andcommitted
fix: remove custom date from commit
1 parent 771b40c commit abc713b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

renku/core/management/git.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import uuid
2727
from collections import defaultdict
2828
from contextlib import contextmanager
29-
from email.utils import formatdate
3029
from itertools import zip_longest
3130
from pathlib import Path
3231

@@ -230,18 +229,13 @@ def ensure_unstaged(self, path):
230229

231230
@contextmanager
232231
def commit(
233-
self,
234-
author_date=None,
235-
commit_only=None,
236-
commit_empty=True,
237-
raise_if_empty=False
232+
self, commit_only=None, commit_empty=True, raise_if_empty=False
238233
):
239234
"""Automatic commit."""
240235
from git import Actor
241236
from renku.version import __version__, version_url
242237

243238
diff_before = set()
244-
author_date = author_date or formatdate(localtime=True)
245239

246240
if commit_only == COMMIT_DIFF_STRATEGY:
247241
staged = {item.a_path for item in self.repo.index.diff(None)}
@@ -312,7 +306,6 @@ def commit(
312306
# Ignore pre-commit hooks since we have already done everything.
313307
self.repo.index.commit(
314308
' '.join(argv),
315-
author_date=author_date,
316309
committer=committer,
317310
skip_hooks=True,
318311
)

0 commit comments

Comments
 (0)