diff --git a/src-tauri/src/sessions.rs b/src-tauri/src/sessions.rs index 0d15eb1a9..33ee8f45a 100644 --- a/src-tauri/src/sessions.rs +++ b/src-tauri/src/sessions.rs @@ -67,12 +67,11 @@ fn parse_reflog_line(line: &str) -> Result { impl Session { pub fn current(repo: &git2::Repository, project: &projects::Project) -> Result> { let session_path = project.session_path(); - if !session_path.exists() { + let meta_path = session_path.join("meta"); + if !meta_path.exists() { return Ok(None); } - let meta_path = session_path.join("meta"); - let start_path = meta_path.join("start"); let start_ts = std::fs::read_to_string(start_path.clone())? .parse::()