# "archive on tag" hook

1 messages from 2010-01-28 to 2010-01-28. Participants: The Anarcat.
Thread: https://gitlist.dev/t/22419

## The Anarcat, 2010-01-28 05:39

Subject: "archive on tag" hook
Message-ID: <20100128053906.GH28798@anarcat.ath.cx>
URL: https://gitlist.dev/e/20100128053906.GH28798%40anarcat.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

```
