Skip to content

Commit f225c65

Browse files
krystian-hebelfilipleple
authored andcommitted
util/dasharo/tag-with-changelog: try to reuse existing edk2 repository
If the script is run in the directory that was used to build coreboot, chances are that edk2 repository is already cloned in the payloads subdirectory. It is passed as '--reference-if-able' option, which reduces the number of objects to be downloaded, even when it is checked out on older revision. If that path doesn't exist, the repo gets cloned as usual. Upstream-Status: Inappropriate [Dasharo downstream] Change-Id: I11eae8a7d87923a469ac7ba927103395ceb979f4 Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
1 parent bdfd17c commit f225c65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

util/dasharo/tag-with-changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ if [ -z "$OLD_EDK2_GIT_VERSION" ]; then
438438
OLD_EDK2_GIT_VERSION="$PREHISTORY"
439439
fi
440440

441-
git clone "$URL" || version_ctrl_c
441+
git clone --reference-if-able payloads/external/edk2/workspace/Dasharo/ --bare "$URL" edk2 || version_ctrl_c
442442
get_log_submodule "$OLD_EDK2_GIT_VERSION" "$NEW_EDK2_GIT_VERSION" "edk2"
443443
rm -rf edk2
444444

0 commit comments

Comments
 (0)