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

Git'ing a non-labeled set of sources

From
SSSparks, Sam <ssparks@twacs.com>
Date
Aug 8, 2007, 18:59 UTC
Message-ID
<CF7E46FCFF66AD478BB72724345289EC170CE4@twx-exch01.twacs.local>
Hello All,

Please excuse me if this is an ignorant question; I'm new to git and my have overlooked something in the documentation.

I'm attempting to obtain a snapshot of source code from an unlabeled git branch in a public repository. I've found in the documentation that a timestamp cannot be used to specify a particular version of source code, but I believe I can work with the commit value as returned by 'git show'.

However, I have been unsuccessful in my attempts to use this identifier to clone or checkout the associated source tree. Has anyone been successful in using git to successfully replicate an unlabeled version of sources in a repository?

Here is my latest attempt:
/dir_i_want_to_replicate $ git show --pretty=short
commit 5b1313fb2758ffce8b624457f777d8cc6709608d
Author: ....
/replication_dir $ git clone git://www.denx.de/git/u-boot.git
u-boot-mpc83xx
Blah blah blah..
 100% (4378/4378) done
/replication_dir/u-boot-mpc83xx/ $ git checkout
5b1313fb2758ffce8b624457f777d8cc6709608d
error: pathspec '5b1313fb2758ffce8b624457f777d8cc6709608d' did not match
any. 

Any suggestions would be greatly appreciated. Thanks in advance, Sam Sparks

Next: Peter Baumann
Message 1 of 8 in “Git'ing a non-labeled set of sources”
  1. Sparks, SamAug 8, 2007
  2. Peter BaumannAug 8, 2007
  3. Sparks, SamAug 8, 2007
  4. Peter BaumannAug 8, 2007
  5. Sparks, SamAug 8, 2007
  6. Sparks, SamAug 8, 2007
  7. Alex RiesenAug 8, 2007
  8. Jan HudecAug 9, 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.