Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
read-tree: force split-index mode off on --index-output
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Fri, 13 Jun 2014 12:19:47 +0000
(19:19 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 13 Jun 2014 18:49:41 +0000
(11:49 -0700)
Just a (paranoid?) safety measure..
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a76295d
)
diff --git
a/read-cache.c
b/read-cache.c
index aa848e170f205fda3e4cc9afae115b7795612a58..b1027f7ee02f0feca35258337a0e3d116c45c7ad 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-2070,7
+2070,8
@@
int write_locked_index(struct index_state *istate, struct lock_file *lock,
{
struct split_index *si = istate->split_index;
- if (!si || (istate->cache_changed & ~EXTMASK)) {
+ if (!si || alternate_index_output ||
+ (istate->cache_changed & ~EXTMASK)) {
if (si)
hashclr(si->base_sha1);
return do_write_locked_index(istate, lock, flags);