Commit Diff


commit - 18f89b627808220c73c9684b6ccc2b9e158d358f
commit + ccecc9fd21b05e615c5ea47b2308c048b0fd7816
blob - 4ab5956fe79d627c966c3c5b73540255d3f271f9
blob + cd3415665c119c7b002ed7110eaacbf0a182f345
--- got/got.c
+++ got/got.c
@@ -3109,8 +3109,8 @@ print_commits(struct got_object_id *root_id, struct go
 	regex_t regex;
 	int have_match;
 
-	if (search_pattern &&
-	    regcomp(&regex, search_pattern, REG_EXTENDED | REG_NOSUB | REG_NEWLINE))
+	if (search_pattern && regcomp(&regex, search_pattern,
+	    REG_EXTENDED | REG_NOSUB | REG_NEWLINE))
 		return got_error_msg(GOT_ERR_REGEX, search_pattern);
 
 	err = got_commit_graph_open(&graph, path, !log_branches);