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

'fatal: invalid gitfile format: /usr/local/opt/asdf/asdf.sh" returned when sourcing .zshrc #857

Closed
jessieobeng opened this issue Jan 24, 2021 · 2 comments

Comments

@jessieobeng
Copy link

Description
I installed asdf using Hombrew method:
brew install asdf --HEAD
and added asdf to my .zshrc file using:
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc

When I restart my terminal, cd into the directory I am working in and enter the command
source ~/.zshrc

I get this error:

fatal: invalid gitfile format: /usr/local/opt/asdf/asdf.sh
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.`

To Reproduce

brew install asdf
asdf plugin add ruby
asdf plugin add nodejs
asdf plugin add terraform
bash -c '${ASDF_DATA_DIR:=$HOME/.asdf}/plugins/nodejs/bin/import-release-team-keyring'
asdf install
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc

*Restart Terminal*
source ~/.zshrc

Expected behavior

No output and the .zshrc file is sourced

Actual behavior

fatal: invalid gitfile format: /usr/local/opt/asdf/asdf.sh
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Environment

asdf version: 0.8.0

@jthegedus
Copy link
Contributor

jthegedus commented Jan 24, 2021

If you installed via Homebrew, then it performed the Git Clone and any permissions for the cloned files. Have you looked for similar issues on Homebrew repo?

It seems someone had a similar issue once before - #428 (comment) - though I would still say it's a Homebrew issue (either with Homebrew or your specific configuration) as we would have hundreds of people reporting this if it affected everyone installing via Homebrew.

@Stratus3D
Copy link
Member

Closing due to lack of a response from @jessieobeng.

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

No branches or pull requests

3 participants