From 0ffcc322fb8d59ab3e74c2dc96109d7b79eefb64 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:49:41 +0200 Subject: [PATCH] Use git checkout for copying the data to temp directory. --- src/bin/buildForWindows.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/buildForWindows.sh b/src/bin/buildForWindows.sh index 7dc66a565..be69273a2 100755 --- a/src/bin/buildForWindows.sh +++ b/src/bin/buildForWindows.sh @@ -29,7 +29,7 @@ trap 'exit 1' HUP INT TERM trap 'log "cleaning up..."; try cd / && try rm -rf "${TMP_FOLDER}"' EXIT log "create a clean environment in $TMP_FOLDER..." -try git archive --format=zip HEAD | (try cd "${TMP_FOLDER}" && try tar xf -P -) \ +try export GIT_WORK_TREE=${TMP_FOLDER}; git checkout HEAD -f \ || fatal "failed to copy etherpad to temporary folder" try mkdir "${TMP_FOLDER}"/.git try git rev-parse HEAD >${TMP_FOLDER}/.git/HEAD