Allow specifying path to 'dulwich log'.
[jelmer/dulwich-libgit2.git] / bin / dulwich
index 8ebc5fce7c80cbecb978d80fb7d0e372f3cdc9dd..04714f9b6eb099fe94a38a51bdc891d5f4ab4420 100755 (executable)
@@ -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: