Allow user to set $GCRYPT_FULL_REPACK to force repack of remote
This commit is contained in:
parent
2cac13417a
commit
5c16aa4bda
2 changed files with 8 additions and 0 deletions
|
@ -81,6 +81,8 @@ the repo, further key management features do not yet exist.
|
||||||
GPG configuration applies to public-key encryption, symmetric
|
GPG configuration applies to public-key encryption, symmetric
|
||||||
encryption, and signing. See `man gpg` for more information.
|
encryption, and signing. See `man gpg` for more information.
|
||||||
|
|
||||||
|
*GCRYPT_FULL_REPACK*
|
||||||
|
This environment variable forces full repack when pushing.
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
========
|
========
|
||||||
|
|
|
@ -430,6 +430,12 @@ repack_if_needed()
|
||||||
did_repack=no
|
did_repack=no
|
||||||
isnonnull "$Packlist" || return 0
|
isnonnull "$Packlist" || return 0
|
||||||
|
|
||||||
|
if isnonnull "$GCRYPT_FULL_REPACK"
|
||||||
|
then
|
||||||
|
Keeplist=
|
||||||
|
Repack_limit=1
|
||||||
|
fi
|
||||||
|
|
||||||
premote_=$(xecho "$Packlist" | cut -f 1-2 -d ' ')
|
premote_=$(xecho "$Packlist" | cut -f 1-2 -d ' ')
|
||||||
pkeep_=$(xecho "$Keeplist" | cut -f 2 -d ' ')
|
pkeep_=$(xecho "$Keeplist" | cut -f 2 -d ' ')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue