summaryrefslogtreecommitdiffstats
path: root/git/bin
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2021-09-27 13:23:33 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2021-09-28 19:12:17 +0000
commit7aea136fa9b453ed15c148844da127d937ef22e3 (patch)
tree57b59f5ebece150b7787dd9971b5ad84092b0b00 /git/bin
parentReleasing version 20210926. (diff)
downloadservice-tools-7aea136fa9b453ed15c148844da127d937ef22e3.tar.xz
service-tools-7aea136fa9b453ed15c148844da127d937ef22e3.zip
Changing variable usage and quoting for 'git gc' options to fix git-repo-repack with newer git versions.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'git/bin')
-rwxr-xr-xgit/bin/git-repo-repack2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/bin/git-repo-repack b/git/bin/git-repo-repack
index 0d3c106..58f909d 100755
--- a/git/bin/git-repo-repack
+++ b/git/bin/git-repo-repack
@@ -51,7 +51,7 @@ do
cd "${REPOSITORY}"
git repack "${GIT_REPACK_OPTIONS}" -a -b -d -f -F
- git gc "${GIT_GC_OPTIONS}" --aggressive --prune
+ git gc --aggressive --prune ${GIT_GC_OPTIONS}
cd "${OLDPWD}"
if [ "$(id -u)" -eq "0" ]