Commit 6030528
Conditionally set local git config based on skip-checkout input (#11)
* fix(github-app-auth): skip local git config when skip-checkout is true
When skip-checkout: 'true', there is no git repo yet, so local git
config commands fail with "fatal: not in a git directory" (exit 128).
Wrap the local (non---global) git config commands in a conditional so
they only run when a repo is present.
https://claude.ai/code/session_01To6bMgr59sMZgHKDTt4F1x
* fix(github-app-auth): set local git config after checkout step
Move local git config (user.name, user.email) to a dedicated step that
runs after checkout, so it always sets both global and local config when
a repo is present. When skip-checkout is true, only global config is set.
https://claude.ai/code/session_01To6bMgr59sMZgHKDTt4F1x
* fix checkout-as-app to also set git config user name and email after checkout
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent fbb1c49 commit 6030528
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | 83 | | |
85 | | - | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| |||
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
0 commit comments