]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
Allow user to set $GCRYPT_FULL_REPACK to force repack of remote
authorroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
committerroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
README.rst
git-remote-gcrypt

index 368ac85b8101bf80c7967714c8876799001423d4..e5154889ec214a7716c13da1e15778e9a2c52589 100644 (file)
@@ -81,6 +81,8 @@ the repo, further key management features do not yet exist.
 GPG configuration applies to public-key encryption, symmetric
 encryption, and signing. See `man gpg` for more information.
 
+*GCRYPT_FULL_REPACK*
+        This environment variable forces full repack when pushing.
 
 Examples
 ========
index a70fc75532931a8ab47d254bc61ba9ca4abb07f7..8d561b3e9122dd53804f41fb25801be893b0f863 100755 (executable)
@@ -430,6 +430,12 @@ repack_if_needed()
        did_repack=no
        isnonnull "$Packlist" || return 0
 
+       if isnonnull "$GCRYPT_FULL_REPACK"
+       then
+               Keeplist=
+               Repack_limit=1
+       fi
+
        premote_=$(xecho "$Packlist" | cut -f 1-2 -d ' ')
        pkeep_=$(xecho "$Keeplist" | cut -f 2 -d ' ')