diff options
author | Ronnie Sahlberg <sahlberg@google.com> | 2014-06-20 07:42:48 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-14 11:54:41 -0700 |
commit | 447ff1bf0acf9a1d7d2dc3aed032c209f105fb8a (patch) | |
tree | de6ade85f9d825f1300f06eda4a7e1627c676d64 /t/t6028-merge-up-to-date.sh | |
parent | lockfile.c: add a new public function unable_to_lock_message (diff) | |
download | tgif-447ff1bf0acf9a1d7d2dc3aed032c209f105fb8a.tar.xz |
lockfile.c: make lock_file return a meaningful errno on failurei
Making errno when returning from lock_file() meaningful, which should
fix
* an existing almost-bug in lock_ref_sha1_basic where it assumes
errno==ENOENT is meaningful and could waste some work on retries
* an existing bug in repack_without_refs where it prints
strerror(errno) and picks advice based on errno, despite errno
potentially being zero and potentially having been clobbered by
that point
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>
Diffstat (limited to 't/t6028-merge-up-to-date.sh')
0 files changed, 0 insertions, 0 deletions