1
0
Fork 0
mirror of synced 2024-12-13 02:45:45 -05:00

Query worktree directly from repo

This commit is contained in:
Tim Byrne 2017-07-05 16:21:54 -05:00
parent 61270c8277
commit 0168bcfb5e
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

3
yadm
View file

@ -880,11 +880,12 @@ function invoke_hook() {
debug "Invoking hook: $hook_command" debug "Invoking hook: $hook_command"
#; expose some internal data to all hooks #; expose some internal data to all hooks
work=$(unix_path "$("$GIT_PROGRAM" config core.worktree)")
YADM_HOOK_COMMAND=$HOOK_COMMAND YADM_HOOK_COMMAND=$HOOK_COMMAND
YADM_HOOK_EXIT=$exit_status YADM_HOOK_EXIT=$exit_status
YADM_HOOK_FULL_COMMAND=$FULL_COMMAND YADM_HOOK_FULL_COMMAND=$FULL_COMMAND
YADM_HOOK_REPO=$YADM_REPO YADM_HOOK_REPO=$YADM_REPO
YADM_HOOK_WORK=$YADM_WORK YADM_HOOK_WORK=$work
export YADM_HOOK_COMMAND export YADM_HOOK_COMMAND
export YADM_HOOK_EXIT export YADM_HOOK_EXIT
export YADM_HOOK_FULL_COMMAND export YADM_HOOK_FULL_COMMAND