Skip to content

git: Use GIT_DIR env var to find the repo#1141

Closed
iamkroot wants to merge 2 commits into
ogham:masterfrom
iamkroot:git_from_env
Closed

git: Use GIT_DIR env var to find the repo#1141
iamkroot wants to merge 2 commits into
ogham:masterfrom
iamkroot:git_from_env

Conversation

@iamkroot

Copy link
Copy Markdown

GIT_DIR overrides everything else.
So even if there is a valid git repo in the current dir, git would use the repo at GIT_DIR.

Closes #722

@iamkroot

iamkroot commented Mar 22, 2023

Copy link
Copy Markdown
Author

@ogham @ariasuni Could you please take a look at this if you get time? It is a pretty small change

@ariasuni

Copy link
Copy Markdown
Collaborator

Closing this, since exa is unmaintained (see #1243), and this has been done in the active fork eza. Thanks!

@ariasuni ariasuni closed this Sep 28, 2023
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.

FR: Respect environment variables GIT_DIR and GIT_WORK_TREE

2 participants