From 8c233d6d29e15c260a2ffa46b747d870cebc80e6 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 May 2021 17:21:57 +0200 Subject: Work out how to mirror a Git repository Based on the guide here: https://libgit2.org/docs/guides/101-samples/#repositories_clone_mirror References: https://github.com/libgit2/libgit2sharp/issues/577 https://github.com/libgit2/libgit2.github.io/pull/31 --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index ea540e6..994c86f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,10 @@ -use reflectub::github; +use reflectub::{git, github}; fn main() { - let repos = github::fetch_repos().unwrap(); + // let repos = github::fetch_repos().unwrap(); + // + // dbg!(&repos); - dbg!(&repos); + git::mirror().unwrap(); } -- cgit v1.2.3