projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec9e1f0
)
Exit does not fail when branch exists
author
Frederic Massart
<fred@moodle.com>
Fri, 22 Feb 2013 05:43:03 +0000
(13:43 +0800)
committer
Frederic Massart
<fred@moodle.com>
Fri, 22 Feb 2013 05:43:03 +0000
(13:43 +0800)
lib/workplace.py
patch
|
blob
|
history
diff --git
a/lib/workplace.py
b/lib/workplace.py
index
8c4ceff
..
51478ff
100644
(file)
--- a/
lib/workplace.py
+++ b/
lib/workplace.py
@@
-137,7
+137,7
@@
class Workplace(object):
else:
track = '%s/MOODLE_%s_STABLE' % (C.get('upstreamRemote'), version)
branch = 'MOODLE_%s_STABLE' % version
- if not repo.createBranch(branch, track):
+ if not repo.
hasBranch(branch) and not repo.
createBranch(branch, track):
debug('Could not create branch %s tracking %s' % (branch, track))
else:
repo.checkout(branch)