there is any way to pass data between githooks scripts?
jupegarnica opened this issue · comments
@jupegarnica if I'm not wrong this doesn't work because the two hooks run in different (not nested) shells, where the export
ed variables are not shared. What you can do is call the getStagedFiles.sh
script from both hooks to avoid repeating the logic.
Make sense,
Thanks