{"action":"opened","issue":{"url":"https://api.github.com/repos/git-lfs/git-lfs/issues/1765","repository_url":"https://api.github.com/repos/git-lfs/git-lfs","labels_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/1765/labels{/name}","comments_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/1765/comments","events_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/1765/events","html_url":"https://github.com/git-lfs/git-lfs/issues/1765","id":195225679,"number":1765,"title":"Problem with git lfs push when manually forking a repository","user":{"login":"clembou","id":4275603,"avatar_url":"https://avatars.githubusercontent.com/u/4275603?v=3","gravatar_id":"","url":"https://api.github.com/users/clembou","html_url":"https://github.com/clembou","followers_url":"https://api.github.com/users/clembou/followers","following_url":"https://api.github.com/users/clembou/following{/other_user}","gists_url":"https://api.github.com/users/clembou/gists{/gist_id}","starred_url":"https://api.github.com/users/clembou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clembou/subscriptions","organizations_url":"https://api.github.com/users/clembou/orgs","repos_url":"https://api.github.com/users/clembou/repos","events_url":"https://api.github.com/users/clembou/events{/privacy}","received_events_url":"https://api.github.com/users/clembou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-13T11:16:04Z","updated_at":"2016-12-13T11:16:04Z","closed_at":null,"body":"Hi,\r\n\r\nI am attempting to fork one of my organisation's repository hosted on Github. Since the fork would be hosted in the same organisation I cannot use the built in \"fork\" button and have to to it manually by creating new repo and pushing to it: `git remote add newrepo https://github.com/myorg/newrepo`\r\n\r\nWhen I try to push to the new repo, the push fails with the following message:\r\n\r\n```\r\ngit lfs push smart master\r\nTrying to push \"ApplicationA.exe\" with OID 04f25016390e616f65a193b9ff5d54498843dbe6856b198a2d28c512d3d1e1b3.\r\nNot found in E:\\repos\\myrepo\\.git\\lfs\\objects\\04\\f2.\r\n```\r\n\r\ngit lfs ls-files says:\r\n```\r\n7a15ce9c98 * ApplicationA.exe\r\n32922f60d2 * ApplicationB.exe\r\ne53d559fd2 * Antlr/Antlr3.Runtime.Debug.dll\r\nab2a9e759c * Antlr/Antlr3.Runtime.JavaExtensions.dll\r\n8c073bb62e * Antlr/Antlr3.Runtime.dll\r\nc2a62167a5 * Antlr/Antlr3.Runtime.pdb\r\n0acc794713 * Antlr/Antlr3.exe\r\nf146e8a15b * Antlr/Antlr4.StringTemplate.Visualizer.dll\r\nab0b54b953 * Antlr/Antlr4.StringTemplate.dll\r\n730dfd1d3a * Antlr/AntlrBuildTask.dll\r\n10f0d0c671 * Antlr/Targets/Antlr3.Targets.CSharp2.dll\r\nb110213cf6 * Antlr/Targets/Antlr3.Targets.CSharp3.dll\r\n```\r\n\r\nBasically, the current latest versions of all tracked files are correctly checked out.\r\n\r\n```\r\ngit lfs fsck\r\nObject ApplicationA.exe (f15d4e351e5bc584530ba657d31d7cb952311e97be2ff73e2ac07f142c849d74) could not be checked: The system cannot find the path specified.\r\nObject ApplicationB.exe (7e529e5af2afb50a96c9181641cba727eb702b039c9c25e56a80830e2cd758ab) could not be checked: The system cannot find the path specified.\r\nObject ApplicationB.exe (f0b3e07b7cd824978d625bc2a68097ad9397d4ca7074d664672bfc9e6cafd2ed) could not be checked: The system cannot find the path specified.\r\nObject ApplicationB.exe (2b2dad0d7b05dcc5f2b824cabfbb66b53071c074a1f449e0c3055135ddf1e16f) could not be checked: The system cannot find the path specified.\r\nObject ApplicationB.exe (586775977e25878d22bcc11d23d00d6c659619a81a73d21c61e20301a03696d2) could not be checked: The system cannot find the path specified.\r\nObject ApplicationA.exe (a3a6ef33c53e92024fbee0f44c651b3ea461273f9b00c3ae561485bc338a902e) could not be checked: The system cannot find the path specified.\r\nObject ApplicationA.exe (1ab172540bcf9f9dfb88621ebdc584578d95bf74d890403e745d994f29b2d41f) could not be checked: The system cannot find the path specified.\r\nObject ApplicationA.exe (c042ab6774f367571e671b6b299c57a66a3ffc1bce8164d675a4b94446479cb9) could not be checked: The system cannot find the path specified.\r\nObject ApplicationB.exe (03d59814cf1b078ec1731eba6c3156f83784eebf7476eaeadcdaacbf8ae42424) could not be checked: The system cannot find the path specified.\r\nObject ApplicationA.exe (04f25016390e616f65a193b9ff5d54498843dbe6856b198a2d28c512d3d1e1b3) could not be checked: The system cannot find the file specified.\r\nObject ApplicationA.exe (f509c3ed15a9e5ea748ddaf3e9c0d79b32d22e6c01d4bdc1342104fd158d0b60) could not be checked: The system cannot find the path specified.\r\nObject ApplicationB.exe (a53b2b6ef844bb9c62e210bbbd38e255b2161f2fbd42cddce398d8759fa4dc95) could not be checked: The system cannot find the path specified.\r\n```\r\n\r\nBut I do not have all the previous versions locally.\r\n\r\nI would have thought that git lfs should be able to deal with this problem? e.g. fetch missing files if needed?\r\n\r\nAlternatively, is there an easy way from me to manually download the previous revisions so that the push succeeds?\r\n\r\nForking the repo under my username works perfecly but since this is a work repository I need to keep the fork in the same organisation so this is not an option.\r\n\r\nEnvironment details below:\r\n```\r\n$ git lfs env\r\ngit-lfs/1.5.3 (GitHub; windows amd64; go 1.7.4; git 23455e48)\r\ngit version 2.11.0.windows.1\r\n\r\nLocalWorkingDir=\r\nLocalGitDir=\r\nLocalGitStorageDir=\r\nLocalMediaDir=\r\nLocalReferenceDir=\r\nTempDir=C:\\Users\\CBOUSC~1\\AppData\\Local\\Temp\\git-lfs\r\nConcurrentTransfers=3\r\nTusTransfers=false\r\nBasicTransfersOnly=false\r\nBatchTransfer=true\r\nSkipDownloadErrors=false\r\nFetchRecentAlways=false\r\nFetchRecentRefsDays=7\r\nFetchRecentCommitsDays=0\r\nFetchRecentRefsIncludeRemotes=true\r\nPruneOffsetDays=3\r\nPruneVerifyRemoteAlways=false\r\nPruneRemoteName=origin\r\nAccessDownload=none\r\nAccessUpload=none\r\nDownloadTransfers=basic\r\nUploadTransfers=basic\r\nGIT_LFS_PATH=C:\\Program Files\\Git LFS\r\ngit config filter.lfs.process = \"git-lfs filter-process\"\r\ngit config filter.lfs.smudge = \"git-lfs smudge -- %f\"\r\ngit config filter.lfs.clean = \"git-lfs clean -- %f\"\r\n```\r\n"}}
{"actor":{"display_login":"clembou"}}