Commit b55bee6
committed
fix: use FETCH_HEAD instead of branch name in git checkout
git checkout -- <name> treats the argument as a pathspec, not a branch
name, causing "pathspec did not match" errors. Using FETCH_HEAD avoids
passing any user-controlled input to the checkout command entirely.1 parent 953fa81 commit b55bee6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments