Query worktree directly from repo
This commit is contained in:
parent
61270c8277
commit
0168bcfb5e
1 changed files with 2 additions and 1 deletions
3
yadm
3
yadm
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue