Remove remote if it is not consistent with METADATA
Change-Id: I3166b87445dfdd5f3966086e32f71e7f6e69e730
diff --git a/git_utils.py b/git_utils.py
index bdbc05c..69dcfba 100644
--- a/git_utils.py
+++ b/git_utils.py
@@ -46,6 +46,11 @@
_run(['git', 'remote', 'add', name, url], cwd=proj_path)
+def remove_remote(proj_path: Path, name: str) -> None:
+ """Removes a git remote."""
+ _run(['git', 'remote', 'remove', name], cwd=proj_path)
+
+
def list_remotes(proj_path: Path) -> Dict[str, str]:
"""Lists all Git remotes.