diff options
author | Martin Fischer <martin@push-f.com> | 2022-07-29 20:28:53 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-07-29 20:28:53 +0200 |
commit | d9cd7ab6f46ddc71206bb75bb72eb9dc36743cac (patch) | |
tree | 53fc33582ad451b51ab910db4bf70c8d6288e410 /src/main.rs | |
parent | 4c036ec89cebabd4fcf068177cc668110c5a42ed (diff) |
refactor: introduce SoloController::new
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/main.rs b/src/main.rs index ab65d75..9251003 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,19 +100,7 @@ async fn main() { if args.multiuser { serve(MultiUserController::new(&repo), args).await; } else { - serve( - SoloController(Branch( - repo.find_reference("HEAD") - .unwrap() - .symbolic_target() - .unwrap() - .strip_prefix("refs/heads/") - .unwrap() - .to_owned(), - )), - args, - ) - .await; + serve(SoloController::new(&repo), args).await; } } |