diff options
author | root <root@localhost> | 2013-02-14 00:00:00 +0000 |
---|---|---|
committer | root <root@localhost> | 2013-02-14 00:00:00 +0000 |
commit | 5c16aa4bdadd31107322d68d7859eb84d4198247 (patch) | |
tree | 202b326a1c1cebb75eca47e48b7d691523285b53 | |
parent | 2cac13417acfbe6314aca1cfb46274488f96e50b (diff) | |
download | git-remote-gcrypt-5c16aa4bdadd31107322d68d7859eb84d4198247.zip git-remote-gcrypt-5c16aa4bdadd31107322d68d7859eb84d4198247.tar.gz git-remote-gcrypt-5c16aa4bdadd31107322d68d7859eb84d4198247.tar.bz2 |
Allow user to set $GCRYPT_FULL_REPACK to force repack of remote
-rw-r--r-- | README.rst | 2 | ||||
-rwxr-xr-x | git-remote-gcrypt | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -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 ======== diff --git a/git-remote-gcrypt b/git-remote-gcrypt index a70fc75..8d561b3 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -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 ' ') |