Merge branch 'cb/open-noatime-clear-errno'
commit9b8d731995c68d590453ccb7ba8344ea96fb2b98
authorJunio C Hamano <gitster@pobox.com>
Tue, 25 Aug 2015 21:57:10 +0000 (25 14:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Aug 2015 21:57:10 +0000 (25 14:57 -0700)
tree631a8d4d5653eb221950ce7a5d5d21feaf0ab968
parentdb86e61cbbc4c59a0886366bbf392498e64b53c8
parentdff6f280dff2b1d0d379ed0e73058819702d0f07
Merge branch 'cb/open-noatime-clear-errno'

When trying to see that an object does not exist, a state errno
leaked from our "first try to open a packfile with O_NOATIME and
then if it fails retry without it" logic on a system that refuses
O_NOATIME.  This confused us and caused us to die, saying that the
packfile is unreadable, when we should have just reported that the
object does not exist in that packfile to the caller.

* cb/open-noatime-clear-errno:
  git_open_noatime: return with errno=0 on success
sha1_file.c