Skip to content

Commit 2840184

Browse files
committed
Use force to delete branches that are deleted on the remote.
1 parent 97598b6 commit 2840184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/hooks/update/50.workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def update_repo(path) -> bool:
107107
+ "\nDo you want to delete them?"
108108
):
109109
for branch in deleted_branches:
110-
repo.delete_head(branch)
110+
repo.delete_head(branch, force=True)
111111
print(f"Deleted {len(deleted_branches)} branches.")
112112

113113
return True

0 commit comments

Comments
 (0)