summaryrefslogtreecommitdiff
path: root/src/srht_contrib/services/git.py
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-11 18:33:33 -0500
committerChristian Cleberg <[email protected]>2026-04-11 18:33:33 -0500
commitf0393a0b8d541df6b47bbeee6c4270ce8303bf18 (patch)
tree6b9d154514d47b4a0a83628bd8c9ea82b56271c6 /src/srht_contrib/services/git.py
parente1a3233ec2204055faa8dadb18cb2efa12cf0e17 (diff)
downloadhutch-stats-f0393a0b8d541df6b47bbeee6c4270ce8303bf18.tar.gz
hutch-stats-f0393a0b8d541df6b47bbeee6c4270ce8303bf18.tar.bz2
hutch-stats-f0393a0b8d541df6b47bbeee6c4270ce8303bf18.zip
fix: service_backfill_states
Diffstat (limited to 'src/srht_contrib/services/git.py')
-rw-r--r--src/srht_contrib/services/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/srht_contrib/services/git.py b/src/srht_contrib/services/git.py
index 69a6c1c..ebb823e 100644
--- a/src/srht_contrib/services/git.py
+++ b/src/srht_contrib/services/git.py
@@ -1,5 +1,6 @@
from __future__ import annotations
+import copy
from dataclasses import dataclass
from datetime import UTC, datetime, timedelta
import logging
@@ -131,7 +132,7 @@ class GitIngestionService:
"current_repository": None,
}
if cursor_state:
- state.update(cursor_state)
+ state.update(copy.deepcopy(cursor_state))
if not state["discovery_complete"]:
data = self.client.execute(