From 1a2a31f49086c1de24e94037dd0de48e0e256a22 Mon Sep 17 00:00:00 2001 From: Dennis Buchhorn Date: Fri, 12 Nov 2021 17:21:20 +0100 Subject: [PATCH] fix: correct file retention from checkout hook --- .githooks/post-checkout | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index 338d05b..0828942 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -15,8 +15,10 @@ for entryFileToSubstitute in $listFilesToSubstitute; do echo "${fileContent//${staticPathSubstitution}/${repoRoot}}" > "${fullPathSubstitute}" done -mv hw_platform/platform.tcl TMP +mv hw_platform/platform.tcl TMP1 +mv hw_platform/platform.tcl.gitsubstitute TMP2 rm -rf hw_platform mkdir hw_platform -mv TMP hw_platform/platform.tcl +mv TMP1 hw_platform/platform.tcl +mv TMP2 hw_platform/platform.tcl.gitsubstitute xsct hw_platform/platform.tcl