File: post-update

package info (click to toggle)
stgit 0.19-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,748 kB
  • sloc: python: 10,558; sh: 5,739; lisp: 2,678; makefile: 142; perl: 42
file content (24 lines) | stat: -rwxr-xr-x 594 bytes parent folder | download | duplicates (4)
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"