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

"archive on tag" hook

From
The Anarcat <anarcat@koumbit.org>
Date
Jan 28, 2010, 05:39 UTC
Message-ID
<20100128053906.GH28798@anarcat.ath.cx>
Hi,

After looking in a few places for a tool to create an archive when pushing tags to a central repository, I have given up and wrote my own.

It's grown into a fairly complete perl script that runs either as a post-receive or update hook and creates a tarball (or zip file) using git-archive in a specific directory. It can also optionnally generate an MD5 sum of the tarball.

Part of this work was sponsored by Koumbit[1] and done for the Aegir project[2].

The code itself is available on our git repository[3]. I will also write a small subsection in the tools page of the wiki[4].

Comments and improvements welcome.
Enjoy!
A.

[1] http://www.koumbit.org/ [2] http://groups.drupal.org/aegir [3] http://git.koumbit.net/?p=tools/git-hooks/.git;a=blob;f=archive-tag [4] http://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools#Hooks

-- 
Antoine Beaupré
Réseau Koumbit Networks
+1.514.387.6262
Message 1 of 1 in “"archive on tag" hook”
  1. The AnarcatJan 28, 2010

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.