Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vivek
erp5
Commits
6d067713
Commit
6d067713
authored
Jun 22, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testnode: do not fail when switching back to a previously used branch
parent
25cf4933
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
erp5/util/testnode/Updater.py
erp5/util/testnode/Updater.py
+3
-0
No files found.
erp5/util/testnode/Updater.py
View file @
6d067713
...
@@ -205,6 +205,9 @@ class Updater(object):
...
@@ -205,6 +205,9 @@ class Updater(object):
self._git('
fetch
', '
--
all
', '
--
prune
')
self._git('
fetch
', '
--
all
', '
--
prune
')
if self.branch and
\
if self.branch and
\
not ("* %s" % self.branch in self._git('
branch
').split("
\
n
")):
not ("* %s" % self.branch in self._git('
branch
').split("
\
n
")):
# Delete branch if already exists
if self.branch in self._git('
branch
'):
self._git('
branch
', '
-
D
', self.branch)
self._git('
checkout
', '
origin
/%
s
' % self.branch, '
-
b',
self._git('
checkout
', '
origin
/%
s
' % self.branch, '
-
b',
self.branch)
self.branch)
self._git('
update
-
index
', '
--
refresh
') # see note above
self._git('
update
-
index
', '
--
refresh
') # see note above
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment