GitFiend / Support

Public repo for GitFiend questions and issues
118 stars 7 forks source link

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

Open colinmacleod opened 1 year ago

colinmacleod commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

GitFiend commented 1 year ago

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 commented 1 year ago

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

GitFiend commented 1 year ago

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