Commit 869ae5a
committed
repository: avoid swallowing error codes in
The error handling in `git_repository_create_head` completely swallows
all error codes. While probably not too much of a problem, this also
violates our usual coding style.
Refactor the code to use a local `error` variable with the typical `goto
out` statements.create_head
1 parent 0d12b8d commit 869ae5a
1 file changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
| 1363 | + | |
1363 | 1364 | | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1367 | 1368 | | |
1368 | 1369 | | |
1369 | 1370 | | |
| |||
1373 | 1374 | | |
1374 | 1375 | | |
1375 | 1376 | | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
1382 | 1380 | | |
1383 | | - | |
| 1381 | + | |
1384 | 1382 | | |
1385 | 1383 | | |
1386 | | - | |
| 1384 | + | |
1387 | 1385 | | |
1388 | 1386 | | |
1389 | 1387 | | |
| |||
0 commit comments