# Referring a commit-id remote repo.

3 messages from 2007-10-01 to 2007-10-01. Participants: David Brown, Johannes Schindelin.
Thread: https://gitlist.dev/t/10097

## David Brown, 2007-10-01 04:16

Subject: Referring a commit-id remote repo.
Message-ID: <20071001041635.GA22102@old.davidb.org>
URL: https://gitlist.dev/e/20071001041635.GA22102%40old.davidb.org

```
Say someone has given me a url to a git-web view of a commit:

<http://www.linux-arm.org/git?p=linux-2.6.git;a=commitdiff_plain;h=c1a54638653ef81187309624940bfa1537aa0fab>

I managed to mangle this around to a repo name that I can clone from, so I
try:

   % git clone git://linux-arm.org/linux-2.6.git play

Now, from within my new directory, I try looking at this commit:

   % git show c1a54638653ef81187309624940bfa1537aa0fab
   fatal: bad object c1a54638653ef81187309624940bfa1537aa0fab

Ok, so they repo appears to have an object that none of their refs can
find, so I didn't pull it over with the clone.

Looking at the patch, I was able to find other commits with the same
content, so I suspect they were doing some rebasing on their repo, after
sending someone a commit ID via email.

The question I have: is there any way I can look at this particular commit
ID on the remote repo?  I couldn't come up with any way to get git fetch to
retrieve it.

Thanks,
David Brown

```

## Johannes Schindelin, 2007-10-01 10:25

Subject: Re: Referring a commit-id remote repo.
Message-ID: <Pine.LNX.4.64.0710011122500.28395@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0710011122500.28395%40racer.site
In-Reply-To: <20071001041635.GA22102@old.davidb.org>

```
Hi,

On Sun, 30 Sep 2007, David Brown wrote:

> The question I have: is there any way I can look at this particular 
> commit ID on the remote repo?  I couldn't come up with any way to get 
> git fetch to retrieve it.

Unless you have push access, no.  And this is very much by design.  For 
example, when somebody mistakenly pushed a secret (like what lines in the 
kernel infringe on M$ patents, if any) it should be possible to rebase (in 
a hurry), force a push, and have the safe feeling that nobody can fetch 
the secret any longer.

Ciao,
Dscho

```

## David Brown, 2007-10-01 15:24

Subject: Re: Referring a commit-id remote repo.
Message-ID: <20071001152412.GA1036@old.davidb.org>
URL: https://gitlist.dev/e/20071001152412.GA1036%40old.davidb.org
In-Reply-To: <Pine.LNX.4.64.0710011122500.28395@racer.site>

```
On Mon, Oct 01, 2007 at 11:25:13AM +0100, Johannes Schindelin wrote:
>On Sun, 30 Sep 2007, David Brown wrote:
>
>> The question I have: is there any way I can look at this particular 
>> commit ID on the remote repo?  I couldn't come up with any way to get 
>> git fetch to retrieve it.
>
>Unless you have push access, no.  And this is very much by design.  For 
>example, when somebody mistakenly pushed a secret (like what lines in the 
>kernel infringe on M$ patents, if any) it should be possible to rebase (in 
>a hurry), force a push, and have the safe feeling that nobody can fetch 
>the secret any longer.

I've found the commits in the 'master' branch, and it looks like the
developer had done a rebase on Sept 3.  I've informed the person asking me
the question to use these commit IDs, and hopefully they won't be doing any
rebasing on their master branch.

Dave

```
