Skip to content

fix(installer): if GIT_WORK_TREE was set git clone will fail#125

Open
tunaflsh wants to merge 4 commits into
mainfrom
git-clear-env
Open

fix(installer): if GIT_WORK_TREE was set git clone will fail#125
tunaflsh wants to merge 4 commits into
mainfrom
git-clear-env

Conversation

@tunaflsh

@tunaflsh tunaflsh commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Directly set --work-tree from command line to ignore GIT_WORK_TREE

@tunaflsh tunaflsh changed the title fix(util): if GIT_WORK_TREE was set git clone will fail fix(installer): if GIT_WORK_TREE was set git clone will fail Jun 15, 2026
@tunaflsh tunaflsh assigned tunaflsh and unassigned tunaflsh Jun 15, 2026
@tunaflsh tunaflsh requested a review from romus204 June 15, 2026 13:44
@tunaflsh

Copy link
Copy Markdown
Collaborator Author

This happened to me when I use nvim as git difftool.

@romus204

Copy link
Copy Markdown
Owner

@tunaflsh What specific error are you getting?
I couldn't reproduce it.

@tunaflsh

This comment was marked as outdated.

@tunaflsh

tunaflsh commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

Or even simpler reproducing steps

cd any-git-repository
GIT_WORK_TREE='.' nvim
:TSUpdate lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants