1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/bin/sh
#
# 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
git update-server-info
# 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; \
exit"
|