fix review: rename hive-knowledge → knowledge throughout, drop false re-clone claim from pull() doc
This commit is contained in:
parent
a176d675cf
commit
cfd677ae7d
2 changed files with 10 additions and 10 deletions
|
|
@ -1,8 +1,8 @@
|
|||
//! Hive-wide knowledge repository management.
|
||||
//!
|
||||
//! `internal/hive-knowledge` on the forge is cloned to
|
||||
//! `internal/knowledge` on the forge is cloned to
|
||||
//! [`LOCAL_DIR`] and bind-mounted read-only into every agent container
|
||||
//! at `/hive-knowledge`. Agents read documents from it directly and
|
||||
//! at `/knowledge`. Agents read documents from it directly and
|
||||
//! contribute by forking the repo and opening PRs — they never write
|
||||
//! to the bind-mounted path inside the container.
|
||||
//!
|
||||
|
|
@ -134,9 +134,9 @@ async fn seed_readme(core_token: &str) -> Result<()> {
|
|||
}
|
||||
|
||||
/// Pull the latest changes in the local clone. Called from the webhook
|
||||
/// handler on every push to `internal/hive-knowledge` main. Uses
|
||||
/// handler on every push to `internal/knowledge` main. Uses
|
||||
/// `--ff-only` so a force-push to the knowledge repo never wedges the
|
||||
/// local copy silently; an error triggers a re-clone fallback.
|
||||
/// local copy silently.
|
||||
pub async fn pull() -> Result<()> {
|
||||
// Sanity: if the clone is missing (e.g. storage was wiped), refuse
|
||||
// to pull and let the caller decide whether to re-clone.
|
||||
|
|
@ -148,7 +148,7 @@ pub async fn pull() -> Result<()> {
|
|||
.args(["-C", LOCAL_DIR, "pull", "--ff-only"])
|
||||
.output()
|
||||
.await
|
||||
.context("git pull hive-knowledge")?;
|
||||
.context("git pull knowledge")?;
|
||||
if out.status.success() {
|
||||
let stdout = String::from_utf8_lossy(&out.stdout).trim().to_owned();
|
||||
tracing::info!(result = %stdout, "knowledge: pull succeeded");
|
||||
|
|
|
|||
Loading…
Reference in a new issue