summaryrefslogtreecommitdiff
path: root/http-fetch.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2010-07-30 13:31:22 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-04 11:21:14 -0700
commit60f20d4bb4f56ae90967d810ffb042e9f76b310d (patch)
tree2619bc9cb1966fc402189c2fb4eec65cd1c717cd /http-fetch.c
parentsetup: split off get_device_or_die helper (diff)
downloadtgif-60f20d4bb4f56ae90967d810ffb042e9f76b310d.tar.xz
t4111 (apply): refresh index before applying patches to it
"git apply", like most plumbing, does not automatically refresh the index file even if it is only stat-dirty. So unless the two "cp" commands in reset_preimage() for a given file happen to have the same time stamp, there will be a spurious error: sub/dir/file: does not match index Refresh the index to eliminate this timing dependency. Noticed by running the test with --valgrind (which slows things down a lot). Reported-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-fetch.c')
0 files changed, 0 insertions, 0 deletions