Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cob: panic on badly formatted debug env var
Slack Coder committed 3 years ago
commit 873ce895ae0110ed9055a537f03f9b0455baff1c
parent 6b67e0571ebb0c69100ac4b9218e893668b7b925
1 file changed +2 -4
modified radicle-cob/src/backend/git/change.rs
@@ -247,10 +247,8 @@ where

        #[cfg(debug_assertions)]
        if let Ok(s) = std::env::var(git::RAD_COMMIT_TIME) {
-
            if let Ok(v) = s.trim().parse::<i64>() {
-
                author.time = git_commit::author::Time::new(v, 0);
-
                timestamp = v;
-
            }
+
            timestamp = s.trim().parse::<i64>().unwrap();
+
            author.time = git_commit::author::Time::new(timestamp, 0);
        }

        let oid = Commit::new(