Skip to content

Commit

Permalink
Merge branch 'feature/secureli-372-existing-hook-info' of github.com:…
Browse files Browse the repository at this point in the history
…slalombuild/secureli into feature/secureli-372-existing-hook-info
  • Loading branch information
kevin-orlando committed Jan 31, 2024
2 parents dd41285 + fdead7c commit 3def61f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions secureli/abstractions/pre_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def install(self, folder_path: Path) -> InstallResult:
backup_hook_path: str = None

if pre_commit_hook.is_file():
# strip out certain chars from the ISO8601 timestamp for inclusion in file name
timestamp = re.sub(r"[.:-]+", "", datetime.datetime.now().isoformat())
backup_hook_path = f"{pre_commit_hook}.backup.{timestamp}"
shutil.copy2(
Expand Down

0 comments on commit 3def61f

Please sign in to comment.