3 # Copyright (c) 2005 Linus Torvalds
6 . git-sh-setup-script || die
"Not a git archive"
9 while case "$#" in 0) break ;; esac
12 -n) no_update_info
=t
;;
19 packname
=$
(git-rev-list
--unpacked --objects $
(git-rev-parse
--all) |
20 git-pack-objects
--non-empty --incremental .tmp-pack
) ||
22 if [ -z "$packname" ]; then
23 echo Nothing new to pack
27 mkdir
-p "$GIT_OBJECT_DIRECTORY/pack" &&
28 mv .tmp-pack-
$packname.pack
"$GIT_OBJECT_DIRECTORY/pack/pack-$packname.pack" &&
29 mv .tmp-pack-
$packname.idx
"$GIT_OBJECT_DIRECTORY/pack/pack-$packname.idx" &&
30 case "$no_update_info" in
32 *) git-update-server-info
;;