Skip to content

Commit a0b7ba8

Browse files
committed
Change MANIFEST reading function in pre-command hook
Replace plugin_read_config with plugin_read_list when reading the manifest in the pre-command hook. This ensures list-version of the option is fully supported. Before this change the pre-command hook would complete with no error and no cache restoration for file level cache when a manifest list is used.
1 parent 16e751a commit a0b7ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/pre-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ build_key "${MAX_LEVEL}" "${RESTORE_PATH}" >/dev/null # to validate the level
3131
SORTED_LEVELS=(file step branch pipeline all)
3232

3333
for CURRENT_LEVEL in "${SORTED_LEVELS[@]}"; do
34-
if [ "${CURRENT_LEVEL}" = 'file' ] && [ -z "$(plugin_read_config MANIFEST)" ]; then
34+
if [ "${CURRENT_LEVEL}" = 'file' ] && [ -z "$(plugin_read_list MANIFEST)" ]; then
3535
continue
3636
fi
3737

0 commit comments

Comments
 (0)