try fix genversion for appveyir

This commit is contained in:
Tim Felgentreff 2020-07-04 22:06:51 +02:00
parent 98342dd0e0
commit a7649ad71d

View file

@ -93,6 +93,10 @@ int main(int argc, char * argv[]) {
break;
}
}
if (git_rev == NULL) {
needs_update = true;
}
if (!needs_update) {
needs_update = strcmp(old_rev, git_rev);
}
@ -101,6 +105,7 @@ int main(int argc, char * argv[]) {
puts("[genversion] no update needed");
return 0;
}
puts("[genversion] update needed");
file = fopen(argv[1], "w");
if ( ! file )