Skip to content

writ repo set writes git's narration past the Narrator, so --silent does not silence it, and gitRun folds git's stderr into its result #1152

Open

Description

@David-Noble-at-work

Epic: WritDeployment (label)

Problem

writ repo set clones with clone.Stdout = cmd.ErrOrStderr() and clone.Stderr = cmd.ErrOrStderr() (cmd/writ/writ/repo_cmd.go:624): git's narration goes to the process's stderr past the Narrator, so writ --silent repo set … still prints git's progress. gitRun (repo_cmd.go:786) uses CombinedOutput, folding git's stderr, which is narration, into the string it returns as git's result. Found 2026-10-23 while laying out the command provider's three streams.

Solution

git's stderr into the Narrator's sink, so --silent governs it; git's stdout alone is the result. Through the command provider once it lands (#1136), or through the Narrator's raw write before then.

Evidence of completion

  • writ --silent repo set of a URL prints nothing; without it, git's progress shows as it happens
  • gitRun's result is git's stdout; its stderr is narration

Also noticed, not this bug's: cmd/writ/writ/snapshot/snapshot.go uses CombinedOutput the same way for git worktree add and checkout.

Plan and design documents

Kind Document
Plan Not yet opened

Activity

  1. David-Noble-at-work commented on Nov 8, 2026

    @David-Noble-at-work
    ContributorAuthor

    Moved on 2026-11-07 by the owner's word, in the Area review of NobleFactor/noblefactor-engprod#452, from Scenario #892, which takes no children, to Feature #463, writ's command surface. Area Product. It keeps its row in Scenario: devlore, where it was found while walking #892.

  2. David-Noble-at-work commented on Nov 9, 2026

    @David-Noble-at-work
    ContributorAuthor

    star github triage sweep added this issue to Triage: devlore, for the rule it breaks:

    • severity: a Bug whose Severity is blank; a bug is Critical, High, Medium or Low
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions