everything is finally purged I think

This commit is contained in:
Jeff Carr 2018-06-07 14:56:40 -07:00
parent 228183eb8a
commit a944be1b44
2 changed files with 16 additions and 11 deletions

View File

@ -16,6 +16,8 @@ git@git.wit.com:wit/ping.wit.com.git ping.wit.com
git@git.wit.com:wit/resumes.git resumes git@git.wit.com:wit/resumes.git resumes
git@git.wit.com:wit/witcoin.git witcoin git@git.wit.com:wit/witcoin.git witcoin
git@git.wit.com:wit/witchain witchain git@git.wit.com:wit/witchain witchain
git@git.wit.com:wit/org-docs org-docs
git@git.wit.com:wit/wit-inventory wit-inventory
git@git.wit.com:kieran/witPhoneAndroid.git witPhoneAndroid git@git.wit.com:kieran/witPhoneAndroid.git witPhoneAndroid
@ -36,3 +38,4 @@ git@git.wit.com:jcarr/bind9dnssec.git bind9dnssec
git@git.wit.com:jcarr/witcoredns.git witcoredns git@git.wit.com:jcarr/witcoredns.git witcoredns
git@git.wit.com:jcarr/old.db.wit.com old.db.wit.com git@git.wit.com:jcarr/old.db.wit.com old.db.wit.com
git@git.wit.com:jcarr/benchmarks benchmarks git@git.wit.com:jcarr/benchmarks benchmarks
git@git.wit.com:jcarr/jcarrbox jcarrbox

View File

@ -74,16 +74,18 @@ foreach $line (@lines) {
} }
foreach $dir (`ls mirrored-gogs/git/gogs-repositories/`) { if ($ARGV[0] eq "gogs") {
chomp $dir; foreach $dir (`ls mirrored-gogs/git/gogs-repositories/`) {
# print "$dir\n"; chomp $dir;
if (! -d "cloned-gogs/$dir") { # print "$dir\n";
my_system "mkdir -p cloned-gogs/$dir\n"; if (! -d "cloned-gogs/$dir") {
} my_system "mkdir -p cloned-gogs/$dir\n";
foreach $name (`ls mirrored-gogs/git/gogs-repositories/$dir`) { }
chomp $name; foreach $name (`ls mirrored-gogs/git/gogs-repositories/$dir`) {
next if ".git" ne substr $name, -4; chomp $name;
$name = substr $name, 0, -4; next if ".git" ne substr $name, -4;
gitrepo ("cloned-gogs/$dir", $name, "git\@git.wit.com:$dir/$name"); $name = substr $name, 0, -4;
gitrepo ("cloned-gogs/$dir", $name, "git\@git.wit.com:$dir/$name");
}
} }
} }