Commit 1ca4538ef452ce30ab8bf21509e9a0a7beb262e0

Stefan Sperling 2018-03-27T23:29:21

fix wrong argv[] index in cmd_log()

1
2
3
4
5
6
7
8
9
10
11
12
13
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();