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)
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 ,
You can’t perform that action at this time.
0 commit comments