Commit Graph

2 Commits

Author SHA1 Message Date
Eisuke Kawashima
db7c04dfb2 Test(git): set commit.gpgsign to false
If a user has run `git config --global commit.gpgsign true`,
git-related tests fail since the test users do not exist and gpg cannot
sign.
2025-06-22 01:45:19 +09:00
Craig Scott
5e941a545b ExternalProject: Ensure git fetch if updating to hash we don't have yet
In ac6a4d4884 (ExternalProject: Improve robustness of update step,
2020-10-17), the method used to check whether we already have a
commit or not was changed from using git rev-list to git rev-parse.
The new logic assumed rev-parse would output nothing if given a commit
hash it didn't know about, but it simply prints the hash again without
raising an error in this scenario. Amend that logic by adding ^{commit} to
the ref to ensure we do get an error if that ref is not currently known.

Fixes: #22166
2021-05-09 12:33:16 +10:00