aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2021-08-04 12:04:06 -0500
committerBlaise Thompson <blaise@untzag.com>2021-08-04 12:04:06 -0500
commite4a985821577b3ae4b4d1c413dca21e5ee5db15f (patch)
tree329aabd284916de67fd703d7d417d1ff5f682ddc
parent0b903ed4d2fd68d6e892c1bb60d1f15c4a788554 (diff)
codeburg
-rw-r--r--mirror.py2
-rw-r--r--mirrors.toml6
2 files changed, 4 insertions, 4 deletions
diff --git a/mirror.py b/mirror.py
index e0f8e09..61f16b3 100644
--- a/mirror.py
+++ b/mirror.py
@@ -11,7 +11,7 @@ with open("mirrors.toml", "r") as f:
for path in repositories.keys():
local_path = pathlib.Path("/git") / pathlib.Path(path)
local_path.mkdir(exist_ok=True, parents=True)
- secondary_urls = repositories[path]["secondary"]
+ secondary_urls = repositories[path]["remotes"]
os.chdir(str(local_path))
subprocess.run(["git", "remote", "update"])
subprocess.run(["git", "fetch", "origin", "'*:*'"])
diff --git a/mirrors.toml b/mirrors.toml
index c9b1e1f..60923fb 100644
--- a/mirrors.toml
+++ b/mirrors.toml
@@ -1,5 +1,5 @@
["uw-madison-chem-shops/wisconsin-photoreactor.git"]
-primary = "https://github.com/uw-madison-chem-shops/wisconsin-photoreactor.git"
-secondary = ["git@gitlab.com:uw-madison-chem-shops/wisconsin-photoreactor.git",
- ]
+upstream = "https://github.com/uw-madison-chem-shops/wisconsin-photoreactor.git"
+remotes = ["git@gitlab.com:uw-madison-chem-shops/wisconsin-photoreactor.git",
+ "git@codeberg.org:untzag/wisconsin-photoreactor.git"]