Skip to content

Commit 859b2bf

Browse files
committed
pacman: restore source symlinks under MSYS
1 parent 647976f commit 859b2bf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/pacman/msys-pacman-build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ trap cleanup EXIT
2222
git -c core.autocrlf=false clone --depth 1 --branch v7.1.0 \
2323
https://gitlab.archlinux.org/pacman/pacman.git "$source_directory"
2424

25+
# Git for Windows initially materializes Pacman's source symlinks as files
26+
# containing the link target. Re-check them out through the MSYS runtime.
27+
git -C "$source_directory" config core.symlinks true
28+
git -C "$source_directory" reset --hard HEAD
29+
2530
expected_revision=5683f8477a0afcc6b331766175a83445b2dcfe89
2631
actual_revision=$(git -C "$source_directory" rev-parse HEAD)
2732
[[ $actual_revision == "$expected_revision" ]] || {

0 commit comments

Comments
 (0)