mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Don't doulbe-open repo
This commit is contained in:
parent
88d4cc1a6a
commit
0352ada9d8
1 changed files with 4 additions and 2 deletions
|
@ -1844,8 +1844,6 @@ impl PictRsConfiguration {
|
||||||
pub async fn run(self) -> color_eyre::Result<()> {
|
pub async fn run(self) -> color_eyre::Result<()> {
|
||||||
let PictRsConfiguration { config, operation } = self;
|
let PictRsConfiguration { config, operation } = self;
|
||||||
|
|
||||||
let repo = Repo::open(config.repo.clone())?;
|
|
||||||
|
|
||||||
let client = build_client(&config)?;
|
let client = build_client(&config)?;
|
||||||
|
|
||||||
match operation {
|
match operation {
|
||||||
|
@ -1855,6 +1853,8 @@ impl PictRsConfiguration {
|
||||||
from,
|
from,
|
||||||
to,
|
to,
|
||||||
} => {
|
} => {
|
||||||
|
let repo = Repo::open(config.repo.clone())?;
|
||||||
|
|
||||||
match from {
|
match from {
|
||||||
config::primitives::Store::Filesystem(config::Filesystem { path }) => {
|
config::primitives::Store::Filesystem(config::Filesystem { path }) => {
|
||||||
let from = FileStore::build(path.clone(), repo.clone()).await?;
|
let from = FileStore::build(path.clone(), repo.clone()).await?;
|
||||||
|
@ -1925,6 +1925,8 @@ impl PictRsConfiguration {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let repo = Repo::open(config.repo.clone())?;
|
||||||
|
|
||||||
if config.server.read_only {
|
if config.server.read_only {
|
||||||
tracing::warn!("Launching in READ ONLY mode");
|
tracing::warn!("Launching in READ ONLY mode");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue