mercurial/commands.py
changeset 675 49de76abc4da
parent 674 6513ba7d858a
child 678 0cfc5966b2c2
--- a/mercurial/commands.py	Sun Jul 10 16:14:56 2005 -0800
+++ b/mercurial/commands.py	Sun Jul 10 16:15:20 2005 -0800
@@ -387,6 +387,9 @@
     source = ui.expandpath(source)
     other = hg.repository(ui, source)
 
+    if other.dev() != -1:
+        abspath = os.path.abspath(source)
+
     if other.dev() != -1 and os.stat(dest).st_dev == other.dev():
         ui.note("cloning by hardlink\n")
         util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest))