git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Referring a commit-id remote repo.

From
David Brown <git@davidb.org>
Date
Oct 1, 2007, 04:16 UTC
Message-ID
<20071001041635.GA22102@old.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

Next: Johannes Schindelin
Message 1 of 3 in “Referring a commit-id remote repo.”
  1. David BrownOct 1, 2007
  2. Johannes SchindelinOct 1, 2007
  3. David BrownOct 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.