Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview window does not see $GIT_DIR nor $GIT_WORK_TREE #49

Closed
Fabrice-Bernes opened this issue Jun 21, 2024 · 2 comments
Closed

Preview window does not see $GIT_DIR nor $GIT_WORK_TREE #49

Fabrice-Bernes opened this issue Jun 21, 2024 · 2 comments

Comments

@Fabrice-Bernes
Copy link

When setting $GIT_DIR and $GIT_WORK_TREE as it is common for working on bare repositories, all commands work ,but the preview windows will display Warning: Not a git repository, fatal: not a git repository or similar messages.
image

@staticssleever668
Copy link

Can't reproduce with neither bash nor zsh

git init --bare /tmp/git_dir
GIT_DIR=/tmp/git_dir GIT_WORK_TREE=$HOME git commit --allow-empty --no-gpg-sign -m "init"
GIT_DIR=/tmp/git_dir GIT_WORK_TREE=$HOME _fzf_git_branches

@Fabrice-Bernes
Copy link
Author

Hi, thank you for checking this.
I tried again and it all works properly now, even with old versions of fzf. I'm using a different setup now so I can only guess this was caused by a messy .zshenv , and it was never an issue with fzf. Sorry about that.

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 a pull request may close this issue.

2 participants