Move git module to server

This commit is contained in:
Joscha 2023-08-17 17:55:21 +02:00
parent f769eeda50
commit 6cf7a0b586
4 changed files with 7 additions and 3 deletions

View file

@ -4,7 +4,6 @@
mod args; mod args;
mod config; mod config;
mod git;
mod id; mod id;
mod server; mod server;
mod shared; mod shared;

View file

@ -1,3 +1,4 @@
mod git;
mod recurring; mod recurring;
mod util; mod util;
pub mod web; pub mod web;
@ -19,7 +20,7 @@ use sqlx::{
}; };
use tokio::select; use tokio::select;
use crate::{args::ServerCommand, config::ServerConfig, git, somehow}; use crate::{args::ServerCommand, config::ServerConfig, somehow};
use self::workers::Workers; use self::workers::Workers;

View file

@ -2,7 +2,11 @@
use log::{debug, info, warn}; use log::{debug, info, warn};
use crate::{config::ServerConfig, git, server::Repo, somehow}; use crate::{
config::ServerConfig,
server::{git, Repo},
somehow,
};
async fn inner(repo: Repo, url: &'static str, refspecs: &'static [String]) -> somehow::Result<()> { async fn inner(repo: Repo, url: &'static str, refspecs: &'static [String]) -> somehow::Result<()> {
let output = let output =