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
1 changed files with 2 additions and 1 deletions

3
yadm
View File

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