Show More
@@ -105,14 +105,14 b' def clone(ui, source, dest=None, pull=Fa' | |||||
105 | destination is local repository |
|
105 | destination is local repository | |
106 | """ |
|
106 | """ | |
107 |
|
107 | |||
|
108 | if isinstance(source, str): | |||
108 | origsource = ui.expandpath(source) |
|
109 | origsource = ui.expandpath(source) | |
109 | source, rev, checkout = parseurl(origsource, rev) |
|
110 | source, rev, checkout = parseurl(origsource, rev) | |
110 |
|
||||
111 | if isinstance(source, str): |
|
|||
112 | src_repo = repository(ui, source) |
|
111 | src_repo = repository(ui, source) | |
113 | else: |
|
112 | else: | |
114 | src_repo = source |
|
113 | src_repo = source | |
115 | source = src_repo.url() |
|
114 | origsource = source = src_repo.url() | |
|
115 | checkout = None | |||
116 |
|
116 | |||
117 | if dest is None: |
|
117 | if dest is None: | |
118 | dest = defaultdest(source) |
|
118 | dest = defaultdest(source) |
General Comments 0
You need to be logged in to leave comments.
Login now