mercurial/commands.py
changeset 965 a425123e6afe
parent 963 84355e3e4493
child 966 022bcc738389
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -495,8 +495,8 @@ def clone(ui, source, dest=None, **opts)
         ui.setconfig("ui", "remotecmd", opts['remotecmd'])
 
     d = Dircleanup(dest)
+    source = ui.expandpath(source)
     abspath = source
-    source = ui.expandpath(source)
     other = hg.repository(ui, source)
 
     if other.dev() != -1: