Explorar o código

Allow specifying path to 'dulwich log'.

Jelmer Vernooij %!s(int64=15) %!d(string=hai) anos
pai
achega
339eee3ac3
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      bin/dulwich

+ 5 - 1
bin/dulwich

@@ -47,7 +47,11 @@ def cmd_fetch_pack(args):
 def cmd_log(args):
 def cmd_log(args):
     from dulwich.repo import Repo
     from dulwich.repo import Repo
     opts, args = getopt(args, "", [])
     opts, args = getopt(args, "", [])
-    r = Repo(".")
+    if len(args) > 0:
+        path = args.pop(0)
+    else:
+        path = "."
+    r = Repo(path)
     todo = [r.head()]
     todo = [r.head()]
     done = set()
     done = set()
     while todo:
     while todo: