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

Can't find git-lfs #1984

Open
vykhovanets opened this issue Nov 20, 2024 · 4 comments
Open

Can't find git-lfs #1984

vykhovanets opened this issue Nov 20, 2024 · 4 comments
Assignees

Comments

@vykhovanets
Copy link

vykhovanets commented Nov 20, 2024

Version info

  • OS: macOS 15.1
  • Build: 2102

Description

In a repos I used Git-lfs previously, now on checkout to any new branch I start seeing erros about Git-lfs, and have to delete pre, post, and other hooks to move to the desired branch.
Git-lfs is installed and accessible in terminal. installed through brew.

Steps to reproduce

See above, please

Expected behavior

To have no issues with git-lfs, be able to use git without going to terminal or other git client.

Debug Information
=== App Version Information ===
Build: 2102

=== Git Version Information ===
Using Git: git (system)
git version 2.39.5 (Apple Git-154)
PATH: /usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin (from shell)
environment variables loaded using: /bin/zsh -l

=== Browse Page Information ===
HEAD: 2ea6
Is in merge: 0
Is in cherry_pick: 0
Is in rebase: 0
Is in revert: 0

=== Git Status Information ===

=== Our Status Information ===

=== Git Config Information ===
branch.main.merge=refs/heads/main
branch.main.remote=origin
branch.main.vscode-merge-base=origin/main
core.bare=false
core.filemode=true
core.ignorecase=true
core.logallrefupdates=true
core.precomposeunicode=true
core.repositoryformatversion=0
credential.helper=osxkeychain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.smudge=git-lfs smudge -- %f
init.defaultbranch=main
lfs.repositoryformatversion=0
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
remote.origin.url=
submodule.active=.
submodule.deps
user.email=
user.name=

=== Our Config Information ===
Git Config Path Information
Using config path: /etc/gitconfig
Using config path: /Users//.config/git/config
Using config path: /Users//.gitconfig
Using config path: /Users///.git/config

Our config output is different to the Git config output
branch.main.merge=refs/heads/main
branch.main.remote=origin
branch.main.vscode-merge-base=origin/main
core.bare=false
core.filemode=true
core.ignorecase=true
core.logallrefupdates=true
core.precomposeunicode=true
core.repositoryformatversion=0
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.smudge=git-lfs smudge -- %f
lfs.repositoryformatversion=0
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
remote.origin.url=
submodule.active=.
submodule.deps/mavlink.url=
user.email=
user.name=

=== Git Attributes Information ===
git check_attr --all output

=== Our Modified Files Newline Normalisation and EOL Information ===

=== Our Modified Files Flag Information ===
Ignoring symlinks: 0

=== Staged Files Information ===

=== Repository Statistics ===
Commit Count: 46
Untracked Files Count: 1
Modified Files Count: 0
Staged Files Count: 0
Submodule Count: 1
Loose Objects Count: 142
Packfile Count: 2

Screenshots

Screenshot 2024-11-20 at 17 07 37 Screenshot 2024-11-20 at 17 20 03
@dpjohnst
Copy link
Member

dpjohnst commented Dec 3, 2024

G'day @vykhovanets,

Thanks for reaching out and sorry to hear you're experiencing this issue.

Sublime Merge loads environment variables (including PATH) using /bin/zsh -l (essentially from the .zprofile file).
It might be the case that git-lfs isn't available in any of the paths provided.

Can you confirm the path of git-lfs using which git-lfs in the terminal.

Cheers,
- Dylan from Sublime HQ

@dpjohnst dpjohnst self-assigned this Dec 3, 2024
@vykhovanets
Copy link
Author

vykhovanets commented Dec 3, 2024

Hi @dpjohnst,

I confirm:

Screenshot 2024-12-03 at 07 35 12

the path is /opt/homebrew/bin/git-lfs

@dpjohnst
Copy link
Member

G'day @vykhovanets,

Thanks for clarifying this!

It looks as if /opt/homebrew/bin isn't available in your PATH. You can add this by modifying/creating a .zprofile file in your user root directory.

  1. Open ~/.zprofile
  2. Add the following to the file: export PATH="/opt/homebrew/bin:$PATH"
  3. Restart Sublime Merge

Let me know if this resolves the issue for you.

Many thanks,
- Dylan from Sublime HQ

@vykhovanets
Copy link
Author

That helped, thank you, @dpjohnst !

The issue was, I am using .zshrc with all configurations and PATH settings, but it seems that Sublime Merge reads only .zprofile, when I created a .zprofile - all works again.

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