223
229
If there is one, it is returned, along with the unused portion of path.
229
235
if path.find('://') != -1:
230
236
raise NotBranchError(path=path)
235
241
return WorkingTree(path), tail
241
247
tail = os.path.basename(path)
242
249
path = os.path.dirname(path)
245
251
# reached the root, whatever that may be
246
252
raise NotBranchError(path=path)