1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

Export GIT_WORK_TREE during yadm enter (#160)

This commit is contained in:
Tim Byrne
2019-12-08 14:42:04 -06:00
parent 32baf81b56
commit e7d2406af3
2 changed files with 4 additions and 0 deletions

3
yadm
View File

@@ -919,6 +919,9 @@ function enter() {
shell_cmd=('-c' "$*")
fi
GIT_WORK_TREE=$(unix_path "$("$GIT_PROGRAM" config core.worktree)")
export GIT_WORK_TREE
[ "${#shell_cmd[@]}" -eq 0 ] && echo "Entering yadm repo"
yadm_prompt="yadm shell ($YADM_REPO) $shell_path > "