dot

packages and services management
Log | Files | Refs | README

commit 3b219f15e060b33eeaed51cac9d8b36505073822
parent c1d57774e9b6912fe677934894b43344d1e72a32
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 15 Jul 2018 01:02:23 +0200

add mirroring facility

Diffstat:
Mbin/git-mirror | 8+++-----
Adata/git | 12++++++++++++
Mdot/mblaze | 2+-
Amirror | 18++++++++++++++++++
4 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/bin/git-mirror b/bin/git-mirror @@ -1,11 +1,9 @@ #!/bin/sh -e # setup a mirror from a remote git repository -test $# = 0 && exec echo 'usage: git mirror <repo>' - name=$(basename "$1" .git) -! test -d "$name" && git clone --bare "$1" "$name" +test $# = 0 && exec echo 'usage: git mirror <repo-url>' +test -d "$name" || git clone --bare "$1" "$name" -cd "$name" -git config remote.origin.fetch 'refs/heads/*:refs/heads/*' +git -C "$name" config remote.origin.fetch 'refs/heads/*:refs/heads/*' diff --git a/data/git b/data/git @@ -0,0 +1,12 @@ +git://josuah.net/bitfly +git://josuah.net/conf +git://josuah.net/drawille-el +git://josuah.net/eel +git://josuah.net/ff2txt +git://josuah.net/hty +git://josuah.net/ics2txt +git://josuah.net/iomenu +git://josuah.net/josuah.net +git://josuah.net/ploot +git://josuah.net/plstree +git://josuah.net/tttml diff --git a/dot/mblaze b/dot/mblaze @@ -1,3 +1,3 @@ -Sendmail: sendmail +Sendmail: msmtp Local-Mailbox: mail@josuah.net Outbox: ./mail/ diff --git a/mirror b/mirror @@ -0,0 +1,18 @@ +#!/bin/sh -e + +cd /data/git/ + +git-mirror git://josuah.net/bitfly +git-mirror git://josuah.net/conf +git-mirror git://josuah.net/drawille-el +git-mirror git://josuah.net/eel +git-mirror git://josuah.net/ff2txt +git-mirror git://josuah.net/hty +git-mirror git://josuah.net/ics2txt +git-mirror git://josuah.net/iomenu +git-mirror git://josuah.net/josuah.net +git-mirror git://josuah.net/ploot +git-mirror git://josuah.net/plstree +git-mirror git://josuah.net/tttml + +chown -R /data/git/