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

macOS Ventura - This repository is configured for Git LFS but 'git-lfs' was not found on your path. #183

Open
colinmacleod opened this issue Sep 15, 2023 · 5 comments

Comments

@colinmacleod
Copy link

colinmacleod commented Sep 15, 2023

When I try to push staged changes to a GIT LFS repository, I get this error:

`This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'pre-push' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').

error: failed to push some refs to 'ssh://[REDACTED].git'`

git-lfs is on my path in terminal; I'm running zsh and it was installed via homebrew.

How do I point Gitfiend to the homebrew bin folder?

@GitFiend
Copy link
Owner

Thanks for the report. Sorry, the path stuff is currently hard-coded. I think I'm going to have to replicate this and come up with a fix.

@colinmacleod
Copy link
Author

Let me know if I can help replicate.
It's a fairly clean install on a mac-mini M1.

@GitFiend
Copy link
Owner

I noticed Tauri has a path env fixer util that does more than my own and mentions zsh (fix-path-env-rs). It may be a stab in the dark, but I've created a build that uses this fix: https://github.com/GitFiend/Support/releases/tag/0.43.0

Otherwise, If that doesn't work I'll need to set up a vm, git hook and investigate.

@colinmacleod
Copy link
Author

Yes, that seems to do the trick. Nice one - and well done! Thank you very much!

@GitFiend
Copy link
Owner

Nice. This will probably fix some other related stuff as well, so thanks for bringing it up.

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

2 participants