Commit 8807a64
fix: allow api-lint-diff to run from a git worktree (#2765)
In a git worktree `.git` is a file (not a directory), so the `-d`
test always fails. Switch to `-e` which checks for existence
regardless of type.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 90a99bf commit 8807a64
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments