MCPcopy Create free account
hub / github.com/BillHuang2001/evogit / delete_remote_notes

Function delete_remote_notes

python-impl/evogit/utils/git.py:70–88  ·  view source on GitHub ↗
(config: EvoGitConfig)

Source from the content-addressed store, hash-verified

68
69
70def delete_remote_notes(config: EvoGitConfig) -> None:
71 fetch_notes_from_remote(config, async_fetch=False)
72 remote_notes_namespaces = list_remote_notes_namespaces(config)
73 print(f"Delete the following remote notes: {remote_notes_namespaces}")
74
75 # delete all remote notes
76 for remote_notes_namespace in remote_notes_namespaces:
77 subprocess.run(
78 [
79 "git",
80 "push",
81 "-q",
82 "origin",
83 "-d",
84 f"refs/notes/{remote_notes_namespace}",
85 ],
86 cwd=config.git_dir,
87 check=True,
88 )
89
90
91def init_git_repo(config: EvoGitConfig) -> None:

Callers 1

init_git_repoFunction · 0.85

Calls 2

fetch_notes_from_remoteFunction · 0.85

Tested by

no test coverage detected