Merge branch 'nd/index-errno' into maint-1.7.11
authorJunio C Hamano <gitster@pobox.com>
Tue, 11 Sep 2012 17:53:21 +0000 (10:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Sep 2012 17:53:21 +0000 (10:53 -0700)
* nd/index-errno:
  read_index_from: remove bogus errno assignments

1  2 
read-cache.c

diff --cc read-cache.c
index 7d4bf68e33d35ebeb5e9f985ac5c9dc2962fc8ba,5a78d6b05fd87c4e2a96b294a51ba8659416c3aa..d8543e4d42f0cf7f8850751806cc40bc05578117
@@@ -1407,9 -1273,7 +1407,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;