Only pull if not freshly cloned

This commit is contained in:
Valentin Brandl 2019-04-16 17:51:56 +02:00
parent 22a10de797
commit d279895563
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -130,8 +130,9 @@ fn github(
let file = Path::new(&path);
if !file.exists() {
Repository::clone(&format!("https://{}", gh_path), file)?;
} else {
pull(&path)?;
}
pull(&path)?;
let hoc = hoc(&path)?;
let badge_opt = BadgeOptions {
subject: "Hits-of-Code".to_string(),