Преглед на файлове

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: