diff --git a/.githooks/post-checkout b/.githooks/post-checkout index fbb9c24..d61859c 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -2,8 +2,6 @@ repoRoot=$(git rev-parse --show-toplevel) listFilesToSubstitute=$(find -name *.gitsubstitute) -listStaticPathFiles=$(git grep -lr --untracked $repoRoot) -listStagedFiles=$(git diff --staged --name-only) staticPathSubstitution="\$\$\${GITSUBSTITUTE_REPO_ROOT}" @@ -14,11 +12,3 @@ for entryFileToSubstitute in $listFilesToSubstitute; do fileContent=$(<$fullPath) echo "${fileContent//${staticPathSubstitution}/${repoRoot}}" > "${fullPathSubstitute}" done - -mv hw_platform/platform.tcl TMP1 -mv hw_platform/platform.tcl.gitsubstitute TMP2 -rm -rf hw_platform -mkdir hw_platform -mv TMP1 hw_platform/platform.tcl -mv TMP2 hw_platform/platform.tcl.gitsubstitute -xsct hw_platform/platform.tcl diff --git a/.gitignore b/.gitignore index 6bcb548..9eda234 100644 --- a/.gitignore +++ b/.gitignore @@ -18,9 +18,8 @@ vitis_pid*.str # ignore all files generated by pre-commit hook **/*.gitsubstitute -# ignore all generated platform files but platform setup script -/hw_platform/* -!/hw_platform/platform.tcl +# ignore all generated platform files +/hw_platform/ # ignore ide scripts /*_system/_ide/scripts/*