Skip to content

acceptance: guard git-repo-init against running inside an existing repo#5281

Open
denik wants to merge 1 commit into
mainfrom
denik/git-repo-safe
Open

acceptance: guard git-repo-init against running inside an existing repo#5281
denik wants to merge 1 commit into
mainfrom
denik/git-repo-safe

Conversation

@denik
Copy link
Copy Markdown
Contributor

@denik denik commented May 20, 2026

Why

"git config" writes to whatever repo CWD is in, so calling git-repo-init from inside an existing repo poisons that repo's config without any error signal. I had my cli repo config messed up by an agent.

Co-authored-by: Isaac

git config silently writes to whatever repo CWD is in, so calling
git-repo-init from inside an existing repo poisons that repo's config
without any error signal.

Co-authored-by: Isaac
@denik denik temporarily deployed to test-trigger-is May 20, 2026 12:41 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is May 20, 2026 12:41 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown
Contributor

Waiting for approval

Based on git history, these people are best suited to review:

  • @janniklasrose -- recent work in acceptance/

Eligible reviewers: @andrewnester, @anton-107, @pietern, @renaudhartert-db, @shreyas-goenka, @simonfaltum

Suggestions based on git history. See OWNERS for ownership rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant