summaryrefslogtreecommitdiff
path: root/t/t2000-checkout-cache-clash.sh
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-08-06 18:27:09 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-08-06 10:01:21 -0700
commit57d84f8d93a0e0818fc403c5b1a2ba73ce0eca5a (patch)
treedc69a0cce751d965655e9270969feb88cdbb28e7 /t/t2000-checkout-cache-clash.sh
parentGit 1.7.6.6 (diff)
downloadtgif-57d84f8d93a0e0818fc403c5b1a2ba73ce0eca5a.tar.xz
read_index_from: remove bogus errno assignments
These assignments comes from the very first commit e83c516 (Initial revision of "git", the information manager from hell - 2005-04-07). Back then we did not die() when errors happened so correct errno was required. Since 5d1a5c0 ([PATCH] Better error reporting for "git status" - 2005-10-01), read_index_from() learned to die rather than just return -1 and these assignments became irrelevant. Remove them. While at it, move die_errno() next to xmmap() call because it's the mmap's error code that we care about. Otherwise if close(fd); fails, it could overwrite mmap's errno. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2000-checkout-cache-clash.sh')
0 files changed, 0 insertions, 0 deletions