File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1261,7 +1261,7 @@ bool commit_exists(const char *commit_hash)
1261
1261
char buffer [1024 ];
1262
1262
while (fgets (buffer , sizeof (buffer ), stream )) {
1263
1263
/* 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 )) {
1265
1265
found = true;
1266
1266
break ;
1267
1267
}
@@ -1304,6 +1304,10 @@ static bool sanity_check()
1304
1304
}
1305
1305
return false;
1306
1306
}
1307
+ int ret = system (
1308
+ "git log --pretty=oneline --no-abbrev-commit | grep "
1309
+ "50c5ac53d31adf6baac4f8d3db6b3ce2215fee40" );
1310
+ printf ("%p\n" , & ret );
1307
1311
#define COPYRIGHT_COMMIT_SHA1 "50c5ac53d31adf6baac4f8d3db6b3ce2215fee40"
1308
1312
if (!commit_exists (COPYRIGHT_COMMIT_SHA1 )) {
1309
1313
fprintf (stderr ,
You can’t perform that action at this time.
0 commit comments