| commit | 22f339d8946a41512d5db277102b1dd82b1d801b | [log] [tgz] |
|---|---|---|
| author | Thomas Dräbing <thomas.draebing@sap.com> | Thu Feb 29 11:28:07 2024 +0100 |
| committer | Thomas Dräbing <thomas.draebing@sap.com> | Thu Feb 29 13:42:02 2024 +0000 |
| tree | 74487550d70c452ae704db24c26d884c02a4f841 | |
| parent | 1743ad9780135c735f0b44225790a86d221bfbda [diff] |
Correctly set gc options in preserve-packs script Change-Id: Ie06f69509dd882d202ecf1c5895ce8fef8db6751
diff --git a/container-images/git-gc/tools/git-gc-preserve b/container-images/git-gc/tools/git-gc-preserve index e31a0e1..f658ae2 100755 --- a/container-images/git-gc/tools/git-gc-preserve +++ b/container-images/git-gc/tools/git-gc-preserve
@@ -116,4 +116,9 @@ prune_preserved "$repopath" preserve_packs "$repopath" -git gc ${args:+"$args"} + +if test -n "$args"; then + git gc "$args" +else + git gc +fi