diff options
author | Jesús <heckyel@hyperbola.info> | 2021-04-11 23:02:59 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-04-11 23:02:59 -0500 |
commit | cdc8005303018bf857f13829b9e5bdbd3914e1f3 (patch) | |
tree | 4778df56a5ab764429a0d87f5802569e8cfabe1d /gitolite-cgit | |
parent | d6b100c6fbe2af02ec94d4f44646dbb1108015d4 (diff) | |
download | gitolite-cgit-docker-cdc8005303018bf857f13829b9e5bdbd3914e1f3.tar.lz gitolite-cgit-docker-cdc8005303018bf857f13829b9e5bdbd3914e1f3.tar.xz gitolite-cgit-docker-cdc8005303018bf857f13829b9e5bdbd3914e1f3.zip |
Fix snapshot variable
Diffstat (limited to 'gitolite-cgit')
-rwxr-xr-x | gitolite-cgit/entrypoint.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gitolite-cgit/entrypoint.sh b/gitolite-cgit/entrypoint.sh index 44b2920..dce674e 100755 --- a/gitolite-cgit/entrypoint.sh +++ b/gitolite-cgit/entrypoint.sh @@ -157,6 +157,8 @@ readme=:install.txt readme=:INSTALL readme=:install +snapshots=$CGIT_SNAPSHOT + # Direct cgit to repository location managed by gitolite remove-suffix=0 project-list=/var/lib/git/projects.list @@ -180,11 +182,6 @@ EOF echo "root-desc=$CGIT_DESC" >> /etc/cgitrc fi - if [ ! -z "$CGIT_SNAPSHOT" ]; then - echo "# Allow download of tar.gz, tar.bz2, and tar.xz formats" >> /etc/cgitrc - echo "snapshots=$CGIT_SNAPSHOT" >> /etc/cgitrc - fi - # Using highlight syntax #sed -i.bak \ # -e "s#exec highlight --force -f -I -X -S #\#&#g" \ |