Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
git-remote-rad: Allow pushing from bare repositories
Tobias Hunger committed 10 months ago
commit 60d80abe8ef2d5bd9286fbc5d3dae8c101ab6572
parent 78ba263d0a946c4b90235d562b56ceb7badfc965
1 file changed +1 -3
modified crates/radicle-remote-helper/src/push.rs
@@ -826,9 +826,7 @@ fn push_ref(
    // Nb. The *force* indicator (`+`) is processed by Git tooling before we even reach this code.
    // This happens during the `list for-push` phase.
    let refspec = git::Refspec { src, dst, force };
-
    let repo = working.workdir().ok_or(Error::BareRepository {
-
        path: working.path().to_path_buf(),
-
    })?;
+
    let repo = working.workdir().unwrap_or_else(|| working.path());

    radicle::git::run::<_, _, &str, &str>(
        repo,