From: Ronnie Sahlberg Date: Fri, 20 Jun 2014 14:42:48 +0000 (-0700) Subject: lockfile.c: make lock_file return a meaningful errno on failurei X-Git-Tag: v2.1.0-rc0~22^2~12 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/447ff1bf0acf9a1d7d2dc3aed032c209f105fb8a?hp=447ff1bf0acf9a1d7d2dc3aed032c209f105fb8a 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 Signed-off-by: Junio C Hamano Acked-by: Michael Haggerty ---