{"action":"closed","issue":{"url":"https://api.github.com/repos/github/git-lfs/issues/663","repository_url":"https://api.github.com/repos/github/git-lfs","labels_url":"https://api.github.com/repos/github/git-lfs/issues/663/labels{/name}","comments_url":"https://api.github.com/repos/github/git-lfs/issues/663/comments","events_url":"https://api.github.com/repos/github/git-lfs/issues/663/events","html_url":"https://github.com/github/git-lfs/issues/663","id":106174814,"number":663,"title":"Git LFS pull doesn't download all of the files, and no errors reported","user":{"login":"strich","id":987896,"avatar_url":"https://avatars.githubusercontent.com/u/987896?v=3","gravatar_id":"","url":"https://api.github.com/users/strich","html_url":"https://github.com/strich","followers_url":"https://api.github.com/users/strich/followers","following_url":"https://api.github.com/users/strich/following{/other_user}","gists_url":"https://api.github.com/users/strich/gists{/gist_id}","starred_url":"https://api.github.com/users/strich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strich/subscriptions","organizations_url":"https://api.github.com/users/strich/orgs","repos_url":"https://api.github.com/users/strich/repos","events_url":"https://api.github.com/users/strich/events{/privacy}","received_events_url":"https://api.github.com/users/strich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-09-12T18:00:52Z","updated_at":"2016-04-06T15:15:26Z","closed_at":"2016-04-06T15:15:26Z","body":"I'm really struggling to figure this one out - I'm running a build via Jenkins and its Git plugin performs a repo clone/update in a very specific way that cannot be modified greatly (I cannot make it use `git clone`, for example).\r\n\r\nIt doesn't support Git LFS at all, which is fine. It basically leaves the repo in a detached state (This is fine) and all files managed under Git LFS are still only link files.\r\n\r\nThis is its process:\r\n>Started by user blah\r\nBuilding remotely on blah Home PC (Windows) in workspace C:\\Jenkins\\workspace\\Repo Build\r\nCloning the remote Git repository\r\nUsing shallow clone\r\nCloning repository git@github.com:Company/Repo.git\r\n > git init C:\\Jenkins\\workspace\\Repo Build\\Repo-Prototype # timeout=10\r\nFetching upstream changes from git@github.com:Company/Repo.git\r\n > git --version # timeout=10\r\nusing GIT_SSH to set credentials \r\n > git -c core.askpass=true fetch --tags --progress git@github.com:Company/Repo.git +refs/heads/*:refs/remotes/Github-Repo/* --depth=1\r\n > git config remote.Github-Repo.url git@github.com:Company/Repo.git # timeout=10\r\n > git config --add remote.Github-Repo.fetch +refs/heads/*:refs/remotes/Github-Repo/* # timeout=10\r\n > git config remote.Github-Repo.url git@github.com:Company/Repo.git # timeout=10\r\nFetching upstream changes from git@github.com:Company/Repo.git\r\nusing GIT_SSH to set credentials \r\n > git -c core.askpass=true fetch --tags --progress git@github.com:Company/Repo.git +refs/heads/*:refs/remotes/Github-Repo/*\r\n > git rev-parse \"refs/remotes/Github-Repo/master^{commit}\" # timeout=10\r\n > git rev-parse \"refs/remotes/Github-Repo/Github-Repo/master^{commit}\" # timeout=10\r\nChecking out Revision c6c921ecdf76416a4ddd3a835e54c77e60d1a1b0 (refs/remotes/Github-Repo/master)\r\n > git config core.sparsecheckout # timeout=10\r\n > git checkout -f c6c921ecdf76416a4ddd3a835e54c77e60d1a1b0\r\n > git rev-list c6c921ecdf76416a4ddd3a835e54c77e60d1a1b0 # timeout=10\r\n\r\nAll good so far. I run the following commands after this:\r\n>git remote add origin git@github.com:Company/Repo.git\r\ngit lfs pull\r\n\r\nIt seems to complete successfully with:\r\n> (534 of 534 files) 443.10 MB / 446.51 MB\r\n\r\nHowever a large number of the files are not replaced with their link files. Some are. But definitely not all.\r\n\r\nThis only occurs if I let Jenkins clone the repo the way it does above. If I do it manually via `git clone` & `git lfs pull` it properly gets all the files."}}