epsilon-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jitter git repository


From: Luca Saiu
Subject: Re: jitter git repository
Date: Mon, 2 Dec 2024 11:43:54 +0000
User-agent: pEp-mail-tool with Gnus v5.13, GNU Emacs 30.0.50, GNU/Linux x86_64-pc-linux-gnu

The problem is solved.  You can keep accessing the Jitter git
repository at
  https://git.ageinghacker.net/jitter
, with every commit visible, and from now on it should always be fast
and reliable.  The cgit web interface is gone for now but we will not
particularly miss it.
Thanks to Bruno, Arsen (who suggested something similar to what I did),
and Basile for their feedback.


The following explains the solution, which some people might need or be
curious about.

For the record: I have difficulty convincing myself that this machinery
should be necessary.  Git's “smart HTTP” would imply adding a CGI script
back again, which is a ridiculous idea since we are serving data already
stored on the server filesystem.

The easiest solution I found is adding a post-receive hook,
non-repo-specific.  Making the hook non-repo-specific does not require
any particular gitolite configuration, and automatically applies to
every present and future repository.

In a shell script named ~gitolite3/local/hooks/common/post-receive I
just run git update-server-info :

  #!/bin/bash

  echo 'running git update-server-info'
  git update-server-info \
    || (echo 'FAILED!'; exit 1)

Just once, as gitolite3 :

  cd ~/repositories
  for x in *.git; do
    pushd $x &> /dev/null \
      && ~gitolite3/local/hooks/common/post-receive \
      && popd &> /dev/null \
      && echo GOOD: $x
  done

--  
Luca Saiu      https://ageinghacker.net
  GNU Jitter     https://www.gnu.org/software/jitter
  GNU epsilon    https://www.gnu.org/software/epsilon
  pEp-mail-tool  https://codeberg.org/pEp/pEp-mail-tool

I support everyone's freedom of mocking any opinion or belief, no
matter how deeply held, with open disrespect and the same unrelented
enthusiasm of a toddler who has just learned the word "poo".

Attachment: sender_key.asc
Description: application/pgp-keys


reply via email to

[Prev in Thread] Current Thread [Next in Thread]