{"thread":{"id":"10097","subject":"Referring a commit-id remote repo.","startedAt":"2007-10-01T04:16:35Z","lastAt":"2007-10-01T15:24:12Z","messageCount":3,"participants":["David Brown","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"54450","messageId":"20071001041635.GA22102@old.davidb.org","threadId":"10097","inReplyTo":null,"subject":"Referring a commit-id remote repo.","fromName":"David Brown","fromEmail":"git@davidb.org","sentAt":"2007-10-01T04:16:35Z","receivedAt":"2007-10-01T04:16:35Z","isPatch":false,"sender":{"key":"git@davidb.org","avatar":"https://gravatar.com/avatar/94c86a2938470a74c2eac5e2b69afc0871f79a660295c02219597aba8cb101c1?d=mp&s=160"},"body":"Say someone has given me a url to a git-web view of a commit:\n\n<http://www.linux-arm.org/git?p=linux-2.6.git;a=commitdiff_plain;h=c1a54638653ef81187309624940bfa1537aa0fab>\n\nI managed to mangle this around to a repo name that I can clone from, so I\ntry:\n\n   % git clone git://linux-arm.org/linux-2.6.git play\n\nNow, from within my new directory, I try looking at this commit:\n\n   % git show c1a54638653ef81187309624940bfa1537aa0fab\n   fatal: bad object c1a54638653ef81187309624940bfa1537aa0fab\n\nOk, so they repo appears to have an object that none of their refs can\nfind, so I didn't pull it over with the clone.\n\nLooking at the patch, I was able to find other commits with the same\ncontent, so I suspect they were doing some rebasing on their repo, after\nsending someone a commit ID via email.\n\nThe question I have: is there any way I can look at this particular commit\nID on the remote repo?  I couldn't come up with any way to get git fetch to\nretrieve it.\n\nThanks,\nDavid Brown\n"},{"id":"54465","messageId":"Pine.LNX.4.64.0710011122500.28395@racer.site","threadId":"10097","inReplyTo":"20071001041635.GA22102@old.davidb.org","subject":"Re: Referring a commit-id remote repo.","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-10-01T10:25:13Z","receivedAt":"2007-10-01T10:25:13Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 30 Sep 2007, David Brown wrote:\n\n> The question I have: is there any way I can look at this particular \n> commit ID on the remote repo?  I couldn't come up with any way to get \n> git fetch to retrieve it.\n\nUnless you have push access, no.  And this is very much by design.  For \nexample, when somebody mistakenly pushed a secret (like what lines in the \nkernel infringe on M$ patents, if any) it should be possible to rebase (in \na hurry), force a push, and have the safe feeling that nobody can fetch \nthe secret any longer.\n\nCiao,\nDscho\n"},{"id":"54490","messageId":"20071001152412.GA1036@old.davidb.org","threadId":"10097","inReplyTo":"Pine.LNX.4.64.0710011122500.28395@racer.site","subject":"Re: Referring a commit-id remote repo.","fromName":"David Brown","fromEmail":"git@davidb.org","sentAt":"2007-10-01T15:24:12Z","receivedAt":"2007-10-01T15:24:12Z","isPatch":false,"sender":{"key":"git@davidb.org","avatar":"https://gravatar.com/avatar/94c86a2938470a74c2eac5e2b69afc0871f79a660295c02219597aba8cb101c1?d=mp&s=160"},"body":"On Mon, Oct 01, 2007 at 11:25:13AM +0100, Johannes Schindelin wrote:\n>On Sun, 30 Sep 2007, David Brown wrote:\n>\n>> The question I have: is there any way I can look at this particular \n>> commit ID on the remote repo?  I couldn't come up with any way to get \n>> git fetch to retrieve it.\n>\n>Unless you have push access, no.  And this is very much by design.  For \n>example, when somebody mistakenly pushed a secret (like what lines in the \n>kernel infringe on M$ patents, if any) it should be possible to rebase (in \n>a hurry), force a push, and have the safe feeling that nobody can fetch \n>the secret any longer.\n\nI've found the commits in the 'master' branch, and it looks like the\ndeveloper had done a rebase on Sept 3.  I've informed the person asking me\nthe question to use these commit IDs, and hopefully they won't be doing any\nrebasing on their master branch.\n\nDave\n"}]}