QNICE-FPGA icon indicating copy to clipboard operation
QNICE-FPGA copied to clipboard

Use GitHooks to make sure that tools/make-toolchain.sh is executed on each branch switch

Open sy2002 opened this issue 3 years ago • 0 comments

@MJoergen and @bernd-ulmann It happens frequently to me, that when I am switching branches that I am forgetting to re-run tools/make-toolchain.sh. The results of failing to remember this each time are ranging from "nothing bad happened" to complete desasters (which eat a ton of time to resolve) like black VGA screens after synthesis due to not-recompiled Monitor and PORE.

So I wondered: Is there a way to force some scripts to be run, each time you switch branches? The answer seems to be yes, so I assigned this task to me

https://stackoverflow.com/questions/1011557/is-there-a-way-to-trigger-a-hook-after-a-new-branch-has-been-checked-out-in-git

sy2002 avatar Sep 07 '20 14:09 sy2002