Browse Source

fix: correct file retention from checkout hook

master
Dennis Buchhorn 2 years ago
parent
commit
1a2a31f490
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      .githooks/post-checkout

+ 4
- 2
.githooks/post-checkout View File

@ -15,8 +15,10 @@ for entryFileToSubstitute in $listFilesToSubstitute; do
echo "${fileContent//${staticPathSubstitution}/${repoRoot}}" > "${fullPathSubstitute}" echo "${fileContent//${staticPathSubstitution}/${repoRoot}}" > "${fullPathSubstitute}"
done done
mv hw_platform/platform.tcl TMP
mv hw_platform/platform.tcl TMP1
mv hw_platform/platform.tcl.gitsubstitute TMP2
rm -rf hw_platform rm -rf hw_platform
mkdir 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 xsct hw_platform/platform.tcl

Loading…
Cancel
Save