aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index d56ffdd..e7d8430 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -64,7 +64,7 @@ async fn main() {
match db.repo_get(id).await {
Ok(r) => {
if db.repo_is_updated(&db_repo).await.unwrap() {
- // TODO: fetch
+ update(&path).unwrap();
db.repo_update(&db_repo).await.unwrap();
}
@@ -113,3 +113,9 @@ fn mirror<P: AsRef<Path>>(
Ok(())
}
+
+fn update<P: AsRef<Path>>(repo_path: P) -> anyhow::Result<()> {
+ git::update(repo_path)?;
+
+ Ok(())
+}