mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
activepath: guard against non-string rpath from hgsvn
This commit is contained in:
parent
36afdfef47
commit
2d8819a1ce
@ -739,6 +739,9 @@ def activepath(ui, remote):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
uri = url.getauthinfo(uri)[0]
|
uri = url.getauthinfo(uri)[0]
|
||||||
uri = uri.rstrip('/')
|
uri = uri.rstrip('/')
|
||||||
|
# guard against hgsubversion nonsense
|
||||||
|
if not isinstance(rpath, basestring):
|
||||||
|
continue
|
||||||
rpath = rpath.rstrip('/')
|
rpath = rpath.rstrip('/')
|
||||||
if uri == rpath:
|
if uri == rpath:
|
||||||
realpath = path
|
realpath = path
|
||||||
|
Loading…
Reference in New Issue
Block a user