blob: d7ae4ca0a066b6e93ffb4254d24f83bd312fc1d2 [file] [log] [blame]
# An example hook script to prepare a packed repository for use over
# dumb transports.
# To enable this hook, make this file executable by "chmod +x post-update".
git repack -d
# FTP upload
lftp ftp://your-ftp-site/stgit.git -u username,password -e " \
set ftp:list-empty-ok yes; \
echo Uploading objects; \
mirror -RLecv objects objects; \
echo Uploading refs; \
mirror -RLecv refs refs; \
echo Uploading info; \
mirror -RLecv info info; \
echo Uploading description; \
put description -o description; \
echo Uploading HEAD; \
put HEAD -o HEAD; \