Commit 49ea8ae
authored
acceptance: guard git-repo-init against running inside an existing repo (#5281)
## 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: Isaac1 parent a649259 commit 49ea8ae
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
0 commit comments