summaryrefslogtreecommitdiff
path: root/objects/submodule/root.py
diff options
context:
space:
mode:
Diffstat (limited to 'objects/submodule/root.py')
-rw-r--r--objects/submodule/root.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/objects/submodule/root.py b/objects/submodule/root.py
index d194cd5b..ca51b34e 100644
--- a/objects/submodule/root.py
+++ b/objects/submodule/root.py
@@ -207,12 +207,8 @@ class RootModule(Submodule):
smm = sm.module()
smmr = smm.remotes
try:
- tbr = git.Head.create(smm, sm.branch_name)
- except git.GitCommandError, e:
- if e.status != 128:
- raise
- #END handle something unexpected
-
+ tbr = git.Head.create(smm, sm.branch_name, logmsg='branch: Created from HEAD')
+ except OSError:
# ... or reuse the existing one
tbr = git.Head(smm, sm.branch_path)
#END assure tracking branch exists