Only pull if not freshly cloned
This commit is contained in:
parent
22a10de797
commit
d279895563
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user