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

GH snap does not include git-lfs and fails on repos with LFS content #32

Open
RobertCoop opened this issue Aug 22, 2022 · 0 comments
Open

Comments

@RobertCoop
Copy link

Describe the feature or problem you’d like to solve

I attempted to review a PR on a git-lfs-enabled repo. Error occurred:

gh pr checkout 89
Branch 'xxx' set up to track remote branch 'xxx' from 'origin'.
Switched to a new branch 'xxx'

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 .git/hooks/post-checkout.

exit status 1

Proposed solution

Problem was solved by putting git-lfs binary into the snap filesystem:

sudo unsquashfs -d /tmp/ghsnap /var/lib/snapd/snaps/gh_502.snap
cd /tmp/ghsnap/usr/bin
sudo cp /usr/bin/git-lfs .
sudo snap try /tmp/ghsnap/
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

1 participant