Commit 76d70dc
refs.c: make resolve_ref_unsafe set errno to something meaningful on error
Making errno when returning from resolve_ref_unsafe() meaningful,
which should fix
* a bug in lock_ref_sha1_basic, where it assumes EISDIR
means it failed due to a directory being in the way
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Michael Haggerty <mhagger@alum.mit.edu>1 parent d3f6655 commit 76d70dc
2 files changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
979 | 979 | | |
980 | 980 | | |
981 | 981 | | |
982 | | - | |
| 982 | + | |
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
| 1337 | + | |
1337 | 1338 | | |
1338 | 1339 | | |
1339 | 1340 | | |
| |||
1344 | 1345 | | |
1345 | 1346 | | |
1346 | 1347 | | |
1347 | | - | |
| 1348 | + | |
| 1349 | + | |
1348 | 1350 | | |
| 1351 | + | |
1349 | 1352 | | |
1350 | 1353 | | |
1351 | 1354 | | |
1352 | 1355 | | |
1353 | 1356 | | |
1354 | 1357 | | |
1355 | 1358 | | |
1356 | | - | |
| 1359 | + | |
| 1360 | + | |
1357 | 1361 | | |
| 1362 | + | |
1358 | 1363 | | |
1359 | 1364 | | |
1360 | 1365 | | |
| |||
1416 | 1421 | | |
1417 | 1422 | | |
1418 | 1423 | | |
1419 | | - | |
1420 | | - | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
1421 | 1428 | | |
| 1429 | + | |
| 1430 | + | |
1422 | 1431 | | |
1423 | 1432 | | |
1424 | 1433 | | |
| |||
1435 | 1444 | | |
1436 | 1445 | | |
1437 | 1446 | | |
| 1447 | + | |
1438 | 1448 | | |
1439 | 1449 | | |
1440 | 1450 | | |
| |||
1447 | 1457 | | |
1448 | 1458 | | |
1449 | 1459 | | |
| 1460 | + | |
1450 | 1461 | | |
1451 | 1462 | | |
1452 | 1463 | | |
| |||
0 commit comments