We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 967ef10 commit 3d048bdCopy full SHA for 3d048bd
release_scripts/branches.py
@@ -4,6 +4,7 @@
4
import re
5
import sys
6
import xml.etree.ElementTree as ET
7
+from git import GitCommandError
8
from typing import Any, List
9
10
import git
@@ -205,7 +206,10 @@ def push(self, submodules: bool = False) -> None:
205
206
if submodules:
207
for submodule in self.repo.submodules:
208
logging.info(f"Pushing to submodule '{submodule.module().remote().url}'.")
- submodule.module().git.push("origin", self.branch_name)
209
+ try:
210
+ submodule.module().git.push("origin", self.branch_name)
211
+ except GitCommandError:
212
+ logging.exception("Failed to push to %s: ", submodule.module().remote().url)
213
214
self.repo.git.push("origin", self.branch_name)
215
0 commit comments