Skip to content

GIT_SYNC_EXECHOOK_COMMAND + GIT_SYNC_ONE_TIME #463

@ChrisERo

Description

@ChrisERo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions