Преглед изворни кода

Allow specifying path to 'dulwich log'.

Jelmer Vernooij пре 15 година
родитељ
комит
339eee3ac3
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      bin/dulwich

+ 5 - 1
bin/dulwich

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