Commit c862d150 authored by Julien Muchembled's avatar Julien Muchembled

run_test_suite: fix getting effective revision in case of full checkout

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41874 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e08509ea
......@@ -133,6 +133,8 @@ class Updater(object):
raise NotImplementedError
def checkout(self, *path_list):
if not path_list:
path_list = '.',
revision = self.revision
if os.path.isdir('.git'):
# edit .git/info/sparse-checkout if you want sparse checkout
......@@ -152,7 +154,7 @@ class Updater(object):
if path and not os.path.isdir(path):
svn_mkdirs(path)
self.spawn(*(args + ['--depth=empty', path]))
for path in path_list or ('.',):
for path in path_list:
args = ['svn', 'up', '--force', '--non-interactive']
if revision:
args.append('-r%s' % revision)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment