Fallback to VCS.release_date on VCS::NotFoundError
when -q is given.
One of the RubyCI servers, freebsd12, had a broken git environment:
$ git show fatal: detected dubious ownership in repository at '/usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby' To add an exception for this directory, call: git config --global --add safe.directory /usr/home/chkbuild/chkbuild/tmp/build/20220917T123002Z/ruby
tool/lib/vcs.rb doesn't work normally for that server. Even for such cases, we'd like to generate a usable revision.h.
So this patch lets revision.h fallback to default VCS.release_date when VCS::NotFoundError is raised.
Fallback to VCS.release_date on VCS::NotFoundError
when -q is given.
One of the RubyCI servers, freebsd12, had a broken git environment:
tool/lib/vcs.rb doesn't work normally for that server.
Even for such cases, we'd like to generate a usable revision.h.
So this patch lets revision.h fallback to default VCS.release_date
when VCS::NotFoundError is raised.