Show More
@@ -825,6 +825,11 b' def clone(' | |||
|
825 | 825 | abspath = os.path.abspath(urlutil.urllocalpath(origsource)) |
|
826 | 826 | |
|
827 | 827 | if islocal(dest): |
|
828 | if os.path.exists(dest): | |
|
829 | # only clean up directories we create ourselves | |
|
830 | hgdir = os.path.realpath(os.path.join(dest, b".hg")) | |
|
831 | cleandir = hgdir | |
|
832 | else: | |
|
828 | 833 | cleandir = dest |
|
829 | 834 | |
|
830 | 835 | copy = False |
@@ -855,9 +860,6 b' def clone(' | |||
|
855 | 860 | hgdir = os.path.realpath(os.path.join(dest, b".hg")) |
|
856 | 861 | if not os.path.exists(dest): |
|
857 | 862 | util.makedirs(dest) |
|
858 | else: | |
|
859 | # only clean up directories we create ourselves | |
|
860 | cleandir = hgdir | |
|
861 | 863 | try: |
|
862 | 864 | destpath = hgdir |
|
863 | 865 | util.makedir(destpath, notindexed=True) |
General Comments 0
You need to be logged in to leave comments.
Login now