Revert part of the reverted commit that we want to keep.
[stgit] / contrib / release / post-update
CommitLineData
3dd412a1
CM
1#!/bin/sh
2#
3# An example hook script to prepare a packed repository for use over
4# dumb transports.
5#
6# To enable this hook, make this file executable by "chmod +x post-update".
7
8git repack -d
9git-update-server-info
10
11# FTP upload
12lftp ftp://your-ftp-site/stgit.git -u username,password -e " \
13set ftp:list-empty-ok yes; \
14echo Uploading objects; \
15mirror -RLecv objects objects; \
16echo Uploading refs; \
17mirror -RLecv refs refs; \
18echo Uploading info; \
19mirror -RLecv info info; \
20echo Uploading description; \
21put description -o description; \
22echo Uploading HEAD; \
23put HEAD -o HEAD; \
24exit"