Merge branch 'bk/refresh-missing-ok-in-merge-recursive'
Allow "merge-recursive" to work in an empty (temporary) working tree again when there are renames involved, correcting an old regression in 1.7.7 era. * bk/refresh-missing-ok-in-merge-recursive: merge-recursive.c: tolerate missing files while refreshing index read-cache.c: extend make_cache_entry refresh flag with options read-cache.c: refactor --ignore-missing implementation t3030-merge-recursive: test known breakage with empty work tree
This commit is contained in:
@ -201,7 +201,9 @@ static int add_cacheinfo(unsigned int mode, const unsigned char *sha1,
|
||||
const char *path, int stage, int refresh, int options)
|
||||
{
|
||||
struct cache_entry *ce;
|
||||
ce = make_cache_entry(mode, sha1 ? sha1 : null_sha1, path, stage, refresh);
|
||||
ce = make_cache_entry(mode, sha1 ? sha1 : null_sha1, path, stage,
|
||||
(refresh ? (CE_MATCH_REFRESH |
|
||||
CE_MATCH_IGNORE_MISSING) : 0 ));
|
||||
if (!ce)
|
||||
return error(_("addinfo_cache failed for path '%s'"), path);
|
||||
return add_cache_entry(ce, options);
|
||||
|
||||
Reference in New Issue
Block a user