Show More
@@ -717,6 +717,11 b' def clone(' | |||||
717 | branches = (src_path.branch, branch or []) |
|
717 | branches = (src_path.branch, branch or []) | |
718 | source = src_path.loc |
|
718 | source = src_path.loc | |
719 | else: |
|
719 | else: | |
|
720 | if util.safehasattr(source, 'peer'): | |||
|
721 | srcpeer = source.peer() # in case we were called with a localrepo | |||
|
722 | else: | |||
|
723 | srcpeer = source | |||
|
724 | branches = (None, branch or []) | |||
720 | # XXX path: simply use the peer `path` object when this become available |
|
725 | # XXX path: simply use the peer `path` object when this become available | |
721 | srcpeer = source.peer() # in case we were called with a localrepo |
|
726 | srcpeer = source.peer() # in case we were called with a localrepo | |
722 | branches = (None, branch or []) |
|
727 | branches = (None, branch or []) |
General Comments 0
You need to be logged in to leave comments.
Login now