Skip to content

Commit

Permalink
[Git] Delete symbolic links from Windows tarballs (#8217)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Feb 28, 2024
1 parent e8ca164 commit 3282a3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions G/Git/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ sources = [
script = raw"""
install_license ${WORKSPACE}/srcdir/git-*/COPYING
if [[ "${target}" == *-ming* ]]; then
if [[ "${target}" == *-mingw* ]]; then
cd ${WORKSPACE}/srcdir/${target}
# Delete symbolic links, which can't be created on Windows
echo "Deleting symbolic links..."
find . -type l -print -delete
# Fast path for Windows: just copy the content of the tarball to the prefix
cp -r ${WORKSPACE}/srcdir/${target}/* ${prefix}
cp -r * ${prefix}
exit
fi
Expand Down

0 comments on commit 3282a3b

Please sign in to comment.