-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
Description
When I add a 2nd remote, and try to checkout a remote branch from that remote git-lfs will try to obtain objects from the origin remote instead
git-lfs --version
git-lfs/2.8.0 (GitHub; linux amd64; go 1.12.8)
# relevant variables from git config?
file:/home/jpate/.gitconfig filter.lfs.clean=git-lfs clean -- %f
file:/home/jpate/.gitconfig filter.lfs.smudge=git-lfs smudge -- %f
file:/home/jpate/.gitconfig filter.lfs.process=git-lfs filter-process
file:/home/jpate/.gitconfig filter.lfs.required=true
file:.git/config remote.origin.url=ssh://user@origin.example.com:29418/project
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config remote.gitea.url=ssh://git@172.254.254.254:222/user/escaperoom_project.git
file:.git/config remote.gitea.fetch=+refs/heads/*:refs/remotes/gitea/*
git checkout not-origin/feat_somebranch -b feat_somebranch
See attached log with GIT_TRACE=1:
It seems like it's trying to download the files from origin even though i'm checking out from gittea/feat_somebranch
excerpt
Updating files: 100% (1678/1678), done.
17:57:48.938063 trace git-lfs: tq: sending batch of size 77
17:57:48.938248 trace git-lfs: run_command: ssh -p 29418 -- user@origin.example.com git-lfs-authenticate securityfabricinaction/escaperoom download
17:57:49.320258 trace git-lfs: api: batch 77 files
17:57:49.320661 trace git-lfs: HTTP: POST https://origin.example.com/projectinfo/lfs/objects/batch
17:57:49.414343 trace git-lfs: HTTP: 200
...
17:57:49.416731 trace git-lfs: HTTP: POST https://origin.example.com/project/info/lfs/objects/batch
17:57:49.420200 trace git-lfs: HTTP: 200
17:57:49.420257 trace git-lfs: HTTP: {"objects":[{"oid":"230f53a58750f1cfbc758708144e0bb7bb1f24223be54e156ba06820f1be04d3","size":836,"error":{"code":404,"message":"Object '230f53a58750f1cfbc758708144e0bb7bb1f24223be54e156ba06820f1be04d3' not found"}}]}
17:57:49.420316 trace git-lfs: tq: starting transfer adapter "basic"
Error downloading object: godot/scenes/branch/TokyoStore/AccessoryMat.material (230f53a): Smudge error: Error downloading godot/scenes/branch/TokyoStore/AccessoryMat.material (230f53a58750f1cfbc758708144e0bb7bb1f24223be54e156ba06820f1be04d3): [230f53a58750f1cfbc758708144e0bb7bb1f24223be54e156ba06820f1be04d3] Object '230f53a58750f1cfbc758708144e0bb7bb1f24223be54e156ba06820f1be04d3' not found: [404] Object '230f53a58750f1cfbc758708144e0bb7bb1f24223be54e156ba06820f1be04d3' not found
I was able to work around the problem using
GIT_LFS_SKIP_SMUDGE=1 git checkout gitea/feat_somebranch -b feat_somebranch
git pull gitea feat_sdbranch_cutsceneReactions are currently unavailable