commit d1f58e89dba09baf193aaaff7ba79011ee1b5919 parent d74367b26ab6aae762a722f0ab8b81441ddb09e0 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Mon, 19 Oct 2026 14:23:27 +0200 Add a configuration file for git-wad Download files via RSync protocol when the master repository address uses git protocol. Diffstat:
| A | .git_wad.cfg | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/.git_wad.cfg b/.git_wad.cfg @@ -0,0 +1,8 @@ +#!/bin/sh + +fetch_url="$(git config remote.origin.url)" +if echo "${fetch_url}" | grep -qe "^git://"; then + GIT_WAD_REMOTE_FETCH="$(echo "${fetch_url}" \ + | sed -e 's#^git://#rsync://#' \ + -e 's#/\([^/]\{1,\}\)$#/git/\1#')" +fi