Merge branch 'nd/index-errno'
authorJunio C Hamano <gitster@pobox.com>
Wed, 22 Aug 2012 18:51:42 +0000 (11:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Aug 2012 18:51:42 +0000 (11:51 -0700)
Assignments to errno before calling system functions that used to
matter in the old code were left behind after the code structure
changed sufficiently to make them useless.

* nd/index-errno:
  read_index_from: remove bogus errno assignments

1  2 
read-cache.c

diff --cc read-cache.c
index 2f8159fb165f853aafb5e0cee61f35aa854271ec,5a78d6b05fd87c4e2a96b294a51ba8659416c3aa..76513cdc8fbe417e189164a7e9aa1cd4646a3ac2
@@@ -1412,9 -1273,7 +1412,8 @@@ int read_index_from(struct index_state 
        struct cache_header *hdr;
        void *mmap;
        size_t mmap_size;
 +      struct strbuf previous_name_buf = STRBUF_INIT, *previous_name;
  
-       errno = EBUSY;
        if (istate->initialized)
                return istate->cache_nr;