#!/usr/bin/perl # Parses list of remotes in doc/git.mdwn, configures git to use them # all, and fetches updates from them. my $error=0; open (IN, "doc/git.mdwn") || die "doc/git.mdwn: $!"; while () { if (/^\*\s+\[?\[?(\w+)(?:\|\w+)?\]?\]?\s+`([^>]+)`/) { # note that the remote name has to be a simple word (\w) # for security/sanity reasons my $remote=$1; my $url=$2; # check configured url to deal with it changing my $info=`git remote show -n $remote`; my ($oldurl)=$info=~/URL: (.*)/m; my $r; if ($oldurl ne $url) { system("git remote rm $remote 2>/dev/null"); $r = system("git", "remote", "add", "-f", $remote, $url) } else { $r = system("git", "fetch", "--no-tag", $remote); } if ($r != 0) { print "$remote failed\n"; } $error |= $r; } } close IN; exit $error; f='/'>index : notmuch
Unnamed repository; edit this file 'description' to name the repository.Jonas Smedegaard
summaryrefslogtreecommitdiff
path: root/tags/37/2a/20180303150239.894E060FB@lxp5.free-owl.de/sys
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/37/2a/20180303150239.894E060FB@lxp5.free-owl.de/sys
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
Diffstat (limited to 'tags/37/2a/20180303150239.894E060FB@lxp5.free-owl.de/sys')