Skip to content

Commit 10bc11b

Browse files
committed
Do temporary check
Change-Id: Icfad9b856a234279082f0b6acd6c075090f73442
1 parent 993fc09 commit 10bc11b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

qtest.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ bool commit_exists(const char *commit_hash)
12611261
char buffer[1024];
12621262
while (fgets(buffer, sizeof(buffer), stream)) {
12631263
/* Compare the first 40 characters of each line with commit_hash */
1264-
if (strncmp(buffer, commit_hash, 40) == 0) {
1264+
if (!strncmp(buffer, commit_hash, 40)) {
12651265
found = true;
12661266
break;
12671267
}
@@ -1304,6 +1304,10 @@ static bool sanity_check()
13041304
}
13051305
return false;
13061306
}
1307+
int ret = system(
1308+
"git log --pretty=oneline --no-abbrev-commit | grep "
1309+
"50c5ac53d31adf6baac4f8d3db6b3ce2215fee40");
1310+
printf("%p\n", &ret);
13071311
#define COPYRIGHT_COMMIT_SHA1 "50c5ac53d31adf6baac4f8d3db6b3ce2215fee40"
13081312
if (!commit_exists(COPYRIGHT_COMMIT_SHA1)) {
13091313
fprintf(stderr,

0 commit comments

Comments
 (0)