You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the repo url that you used? You'll have the best luck using the URL in the form of https://github.com/{user}/{repo}.
@aorjoa , yes I have configured [lfs] in ~/.gitconfig and git clone with origin as remote name works well. @technoweenie , I am using Github Enterprise instead of github.com. The git serve is hosted behind company's firewall. I enabled LFS for our organization.
The url is something like http://github-<company_name>.com/<org_name>/<project_name>.git.
Ahh I see, you don't have an origin remote. Simply clone your repo from the repo url, instead of setting up a github remote. Looks like there's a bug here if you don't have an origin remote.
Yes you got it! Simply clone will set origin as remote name by default, but in our scenario, we need to use a script to download multiple repositories from different git servers in a batch, so we need to use different remote names to represent those git server addresses, then this issue occurs~
In this particular case, we could find out about the remote via the environment: GIT_REFLOG_ACTION=pull github master. git smudge <filename> doesn't provide us with enough information, i.e., the remote.
But the problem itself goes deeper. The problem is not the fetch part (of the pull), it's the merge part (leading to a checkout). When checking out a specific revision, we'll never know which remote can provide us the file. We might need to check one remote after the other.
Closing this. You can now have more control over what remotes LFS uses by turning off the smudge capability. It just means you'll have to run git lfs pull manually, instead of relying on git's smudge filter.
Activity
aorjoa commentedon Jun 23, 2015
Do you config
[lfs]in~/.gitconfig?technoweenie commentedon Jun 23, 2015
What's the repo url that you used? You'll have the best luck using the URL in the form of
https://github.com/{user}/{repo}.demonyangyue commentedon Jun 24, 2015
@aorjoa , yes I have configured
[lfs]in~/.gitconfigandgit clonewithoriginas remote name works well.@technoweenie , I am using Github Enterprise instead of github.com. The git serve is hosted behind company's firewall. I enabled
LFSfor our organization.The url is something like
http://github-<company_name>.com/<org_name>/<project_name>.git.technoweenie commentedon Jun 24, 2015
Ahh I see, you don't have an origin remote. Simply clone your repo from the repo url, instead of setting up a github remote. Looks like there's a bug here if you don't have an origin remote.
demonyangyue commentedon Jun 24, 2015
Yes you got it! Simply clone will set
originas remote name by default, but in our scenario, we need to use a script to download multiple repositories from different git servers in a batch, so we need to use different remote names to represent those git server addresses, then this issue occurs~michael-k commentedon Jun 24, 2015
In this particular case, we could find out about the remote via the environment:
GIT_REFLOG_ACTION=pull github master.git smudge <filename>doesn't provide us with enough information, i.e., the remote.But the problem itself goes deeper. The problem is not the fetch part (of the pull), it's the merge part (leading to a checkout). When checking out a specific revision, we'll never know which remote can provide us the file. We might need to check one remote after the other.
git-annex is way better suited for this.
technoweenie commentedon Jun 24, 2015
FWIW We have an issue open to discuss the technical details in #436.
michael-k commentedon Jun 24, 2015
@demonyangyue: Workaround suggestion:
technoweenie commentedon Aug 12, 2016
Closing this. You can now have more control over what remotes LFS uses by turning off the smudge capability. It just means you'll have to run
git lfs pullmanually, instead of relying on git's smudge filter.