Commits

Anonymous committed 085868e

hgtk: fix traceback when running in non-repo directories

Comments (0)

Files changed (1)

     root = hglib.rootpath(cwd)
     opts = { 'root' : root, 'cwd' : cwd }
 
-    if root is None and command not in nonrepo_commands:
+    if not root and command not in nonrepo_commands:
         print 'No repository found, and', command, 'requires one.'
         sys.exit(1)