fix wrong argv[] index in cmd_log()
diff --git a/got/got.c b/got/got.c
index e596c33..9256ea5 100644
--- a/got/got.c
+++ b/got/got.c
@@ -433,7 +433,7 @@ cmd_log(int argc, char *argv[])
if (repo_path == NULL)
err(1, "getcwd");
} else if (argc == 1)
- repo_path = argv[1];
+ repo_path = argv[0];
else
usage_log();