Marc Simpson  committed befc5e9

Fix to clone_wrapper (don't abort when --persona hasn't been supplied)

  • Participants
  • Parent commits 3d9f032
  • Branches default

Comments (0)

Files changed (1)

 def clone_wrapper(orig, ui, repo, *args, **opts):
     res = orig(ui, repo, *args, **opts)
-    if args:
+    if args and opts["persona"]:
             target = localrepo.localrepository(ui, args[0])
         except error.RepoError:
             raise util.Abort(_("Can't write persona (is this a local repo?)"))
-        if opts["persona"]:
-            persona(ui, target, name=opts["persona"])
+        persona(ui, target, name=opts["persona"])
 def uisetup(ui):
     entry = extensions.wrapcommand(commands.table, "clone", clone_wrapper)