diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-07-25 16:14:40 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-07-25 16:14:40 +0200 |
commit | 4d5dac7ae48762a6750bbff5a8af9b7512d1e361 (patch) | |
tree | cb9a0af97c7570ae8c5fc23bb08acb131f7a3fb7 /doc/tutorial | |
parent | 886b1dd6edd2994b49451855fb5aa4b1a0cfcba7 (diff) | |
download | justbuild-4d5dac7ae48762a6750bbff5a8af9b7512d1e361.tar.gz |
just-mr: retry `git tag -f` if needed
just-mr uses git tags to ensure that git roots used in the repository
configuration handed out do not get garbage collected. Here, the
tag encodes the commit to be kept; hence we can safely do this
operation forcefully: we would only reset the tag to its old value.
However, this tagging still is not free of races: git seems to
first check for the existence of the tag and if not present tries
creation under the assumption that no other process does so (and
fails if this is the case). As our tagging is idempotent, we can
safely retry it to work around this git race.
Diffstat (limited to 'doc/tutorial')
0 files changed, 0 insertions, 0 deletions