X-Git-Url: https://git.uis.cam.ac.uk/x/uis/git/git.git/blobdiff_plain/7e44d8055c76d4e8291d6dae289ebccab1e72aab..b0e0fc267bfb270b0ccf48ff17179c9c315dc2a9:/cache-tree.c diff --git a/cache-tree.c b/cache-tree.c index e03e72c34a..0dd6292a94 100644 --- a/cache-tree.c +++ b/cache-tree.c @@ -608,7 +608,7 @@ int write_index_as_tree(unsigned char *sha1, struct index_state *index_state, co hold_lock_file_for_update(&lock_file, index_path, LOCK_DIE_ON_ERROR); - entries = read_index_from(index_state, index_path); + entries = read_index_from(index_state, index_path, get_git_dir()); if (entries < 0) { ret = WRITE_TREE_UNREADABLE_INDEX; goto out;