diff options
| author | Teddy Wing | 2021-06-24 00:32:31 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2021-06-24 00:32:31 +0200 | 
| commit | 39ff96139cf9b8e35c83877c38e9fb75c1b84409 (patch) | |
| tree | 83b681586a0449ea5537079c2857c1ef86cedf47 /src | |
| parent | fd77d11af8ccf621f4ec9d5e1bb2e23430cdcda4 (diff) | |
| download | reflectub-39ff96139cf9b8e35c83877c38e9fb75c1b84409.tar.bz2 | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 31 | 
1 files changed, 2 insertions, 29 deletions
| 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")?; | 
