Project

General

Profile

« Previous | Next » 

Revision 33c6dd2c

Added by k0kubun (Takashi Kokubun) about 3 years ago

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.