From 39ff96139cf9b8e35c83877c38e9fb75c1b84409 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 24 Jun 2021 00:32:31 +0200 Subject: main: Re-enable GitHub repository fetching Now that we're done working out empty repository handling for setting the mtime, revert this hard-coded test repository change. --- src/main.rs | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index a776070..811dcb4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -109,35 +109,8 @@ fn run() -> Result<(), MultiError> { let base_cgitrc = opt_matches.opt_str("cgitrc") .map(|s| PathBuf::from(s)); - // let repos = github::fetch_repos(username) - // .context("unable to fetch GitHub repositories")?; - - let repos = vec![ - github::Repo { - id: 5924490, - name: "THWAP".to_owned(), - description: None, - fork: false, - git_url: "git://github.com/teddywing/THWAP.git".to_owned(), - default_branch: "master".to_owned(), - size: 48, - updated_at: "2013-01-12T09:09:38Z".to_owned(), - pushed_at: "2012-09-23T17:45:14Z".to_owned(), - }, - github::Repo { - id: 158463778, - name: "youtube-turn-off-annotations".to_owned(), - description: Some( - "A user script that turns off annotations on YouTube videos".to_owned(), - ), - fork: false, - git_url: "git://github.com/teddywing/youtube-turn-off-annotations.git".to_owned(), - default_branch: "master".to_owned(), - size: 17, - updated_at: "2018-11-20T23:44:31Z".to_owned(), - pushed_at: "2018-11-20T23:44:29Z".to_owned(), - }, - ]; + let repos = github::fetch_repos(username) + .context("unable to fetch GitHub repositories")?; let db = database::Db::connect(&database_file) .context("unable to connect to database")?; -- cgit v1.2.3