Skip to content

Commit fc4247a

Browse files
committed
.github/scripts/capsule-versioning-check.sh: don't fail on new configs
If a new defconfig was added between the previous and current tag, the script failed with an error like this: fatal: path 'configs/config.gigabyte_mz33-ar1' exists on disk, but not in 'msi_ms7e06_v0.9.4' Change-Id: Ic50dbfb5432cc59ec2ac9e14eb5296e08fe28da2 Upstream-Status: Inappropriate [Dasharo downstream] Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
1 parent 01108ad commit fc4247a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/scripts/capsule-versioning-check.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ fail=0
7575
mapfile -t configs < <(grep -l 'EFI_UPDATE_CAPSULE' configs/config.*)
7676
for config in "${configs[@]}"; do
7777
new_config=$(git show "$new_tag:$config")
78-
old_config=$(git show "$old_tag:$config")
78+
if ! old_config=$(git show "$old_tag:$config"); then
79+
# `git show revision:path` fails if the revision doesn't contain the
80+
# path and we also have nothing to do in this case
81+
continue
82+
fi
7983

8084
# check that `CONFIG_EDK2_CAPSULES_V2=y` is not added to
8185
# `CONFIG_DRIVERS_EFI_UPDATE_CAPSULES=y` without

0 commit comments

Comments
 (0)