commit | 91f2c8cb366e21c20544f531be710fdfa5eb3afb | [log] [tgz] |
---|---|---|
author | Patrick Hiesel <hiesel@google.com> | Fri May 29 10:10:35 2020 +0200 |
committer | Patrick Hiesel <hiesel@google.com> | Fri May 29 11:05:59 2020 +0200 |
tree | cc5fd006de2cc90faf6472688926794ab997a644 | |
parent | 939ba522572d1161c6c6aee161e4aca3e128386e [diff] |
Evict All-Projects after before reading it in a GitRefUpdate The work on the project cache has surfaced an interesting bug. Before this rework, the project cache was disabled in tests, meaning every call to it would reload from disk. Now, it is enabled. This broke the SuperManifest tests because the plugin listens to GitRefUpdated events on All-Projects, refs/meta/config and keeps an internal state of parsed configs. GitRefUpdated hooks are called before ReceiveCommit evicts the project cache in #postUpdate. This commit adds a band-aid to evict All-Projects before reading the confing. This will only be triggered on config updates to All-Projects. It means evicting All-Projects twice on update. Change-Id: I34def3f65bbead56462836e553ae03a0b4c79fa8
The plugin will update a superproject to contain the submodules defined in the manifest XML file whenever the manifest repo is changed.
For more information see the documentation.