Commit fa1dad9
committed
Fix linkage check script to handle detached HEAD state
The beam-linkage-check.sh script previously used 'git rev-parse --abbrev-ref HEAD'
to save the current position before switching branches. When in detached HEAD state
(common when verifying PRs), this returns the string 'HEAD' instead of a valid ref,
causing the cleanup function to fail to restore the original position.
This change:
- Uses 'git rev-parse HEAD' to get the full commit SHA instead of branch name
- Adds '-c advice.detachedHead=false' to suppress warnings in cleanup
- Adds explanatory comments
Fixes #205581 parent d9c1e4e commit fa1dad9
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | | - | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
0 commit comments