xiaolongmr commited on
Commit
ee30aa8
·
1 Parent(s): 5d719d4

Skip git hooks for data storage commits

Browse files
Files changed (1) hide show
  1. services/storage/git_storage.py +3 -1
services/storage/git_storage.py CHANGED
@@ -143,7 +143,9 @@ class GitStorageBackend(StorageBackend):
143
  )
144
  repo.index.add([file_path])
145
  if repo.is_dirty():
146
- repo.index.commit(message)
 
 
147
  repo.remote("origin").push(self.branch)
148
 
149
  def health_check(self) -> dict[str, Any]:
 
143
  )
144
  repo.index.add([file_path])
145
  if repo.is_dirty():
146
+ # The data repository only stores JSON state; deployment volumes may
147
+ # preserve non-executable sample hooks, so skip hooks for reliability.
148
+ repo.index.commit(message, skip_hooks=True)
149
  repo.remote("origin").push(self.branch)
150
 
151
  def health_check(self) -> dict[str, Any]: