Commit 8c0107a
committed
fix: Add proper error handling for git ls-remote commands
- Check $LASTEXITCODE after git ls-remote calls
- Prevent parsing error messages as commit hashes
- Fixes potential corruption of CMake files with 'fatal:' etc.
- Applies to both Update-CMakeFile and Find-TagForHash functions
Fixes critical bug where network failures could corrupt dependency files.1 parent b9c8c4f commit 8c0107a
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
0 commit comments