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

git archive

From
KJkenneth johansson <ken@kenjo.org>
Date
Oct 22, 2008, 08:42 UTC
Message-ID
<gdmp0p$92r$1@ger.gmane.org>

I was going to make a tar of the latest stable linux kernel. Done it before but now I got a strange problem.

>git archive --format=tar v2.6.27.2
fatal: Not a valid object name
this is the output from some other command on the same bare repository.
>git tag | grep 2.6.27.2
v2.6.27.2
>git cat-file -p v2.6.27.2

object 6bcd6d778419101dd96cbbdf03eeab8d779b1d66 type commit tag v2.6.27.2 tagger Greg Kroah-Hartman <gregkh@suse.de> Sat Oct 18 10:58:00 2008 -0700

This is the v2.6.27.2 stable release
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAkj6I6sACgkQMUfUDdst+ylcigCg0/e3kQZwAqLp6wPuPqdWl7nL X0wAnjuNPJG1OqZfhMiAGccLx0QGvMQz =INvo -----END PGP SIGNATURE-----

>git cat-file -p 6bcd6d778419101dd96cbbdf03eeab8d779b1d66

tree a717af81e5a2e8a7ee36f3b80aa077965f570197 parent 6505670551fa3deeb6e5d7cab6983514384c7220 author Greg Kroah-Hartman <gregkh@suse.de> 1224352642 -0700 committer Greg Kroah-Hartman <gregkh@suse.de> 1224352642 -0700

Linux 2.6.27.2
>git archive --format=tar a717af81e5a2e8a7ee36f3b80aa077965f570197
fatal: not a tree object
>git cat-file -t a717af81e5a2e8a7ee36f3b80aa077965f570197
tree
Next: Deskin Miller
Message 1 of 14 in “git archive”
  1. kenneth johanssonOct 22, 2008
  2. Deskin MillerOct 22, 2008
  3. kenneth johanssonOct 22, 2008
  4. archive: fix setup to work in bare repositoriesDeskin Miller, Oct 22, 2008
  5. Jeff KingOct 22, 2008
  6. Charles BaileyOct 22, 2008
  7. Fixed git archive for bare reposCharles Bailey, Oct 22, 2008
  8. Deskin MillerOct 23, 2008
  9. René ScharfeOct 24, 2008
  10. Fixed git archive for bare reposDeskin Miller, Oct 25, 2008
  11. Junio C HamanoOct 25, 2008
  12. Nguyen Thai Ngoc DuyOct 23, 2008
  13. Deskin MillerOct 23, 2008
  14. Nguyen Thai Ngoc DuyOct 24, 2008

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.