aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs14
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;
}
}