Is a command specified by the EXECHOOK_COMMAND environment variable always supposed to execute after git sync pulls/clones a git repo? The documentation suggests this, but when GIT_SYNC_ONE_TIME is true, I do not see where this is enforced. It seems possible that the main thread could execute os.Exit before the exechook/consumer thread processes the "sync event" and executes the specified command.
I looked at version 3.3.4 and it looks like it does not have such a race condition, as the exechook is run by the same main thread.
Forgive me if this is not the correct venue to post this question/issue; it's my first "contribution" to an open-source project.
Is a command specified by the EXECHOOK_COMMAND environment variable always supposed to execute after git sync pulls/clones a git repo? The documentation suggests this, but when GIT_SYNC_ONE_TIME is true, I do not see where this is enforced. It seems possible that the main thread could execute os.Exit before the exechook/consumer thread processes the "sync event" and executes the specified command.
I looked at version 3.3.4 and it looks like it does not have such a race condition, as the exechook is run by the same main thread.
Forgive me if this is not the correct venue to post this question/issue; it's my first "contribution" to an open-source project.