Stripped the trailing forward slash(s) '/' from the end of the checkout url before checking for 'trunk$'

This commit is contained in:
Mike_Zwagerman 2015-08-25 16:32:30 -04:00 committed by Josh Holtrop
parent 3456e95135
commit 146bdc347b

5
jsvn
View File

@ -1651,8 +1651,9 @@ def url_h(argv, svn, out, config):
return RET_OK return RET_OK
def checkout_h(argv, svn, out, config): def checkout_h(argv, svn, out, config):
if re.search(r'://.*/trunk$', argv[-1]): co_url = argv[-1].rstrip('/')
argv += [argv[-1].split("/")[-2]] if re.search(r'://.*/trunk$', co_url):
argv += [co_url.split("/")[-2]]
Popen([svn] + argv, stdout=out).wait() Popen([svn] + argv, stdout=out).wait()
return RET_OK return RET_OK