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

Push tag from shallow clone?

From
Sskillzero@gmail.com <skillzero@gmail.com>
Date
Mar 19, 2009, 17:56 UTC
Message-ID
<2729632a0903191056w4efdbec6hd1656d7b47d0d8a3@mail.gmail.com>

The documentation for git clone says that if you use --depth=1 to make a shallow clone that you can't push it. But I made a shallow clone, created a tag, then tried to push that tag and it worked. Am I just getting lucky or is it safe to push a tag with a shallow clone?

The reason I ask is that we have an automatic builder/tester/archiver where I'd like to make a shallow clone (to save space since it only needs the tip of the branch to do the build), do the normal build and test and if it all passes, tag it, and push the tag so people can pull tags that have been verified by the automated builder.

Next: Shawn O. Pearce
Message 1 of 3 in “Push tag from shallow clone?”
  1. skillzero@gmail.comMar 19, 2009
  2. Shawn O. PearceMar 19, 2009
  3. skillzero@gmail.comMar 20, 2009

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.