Merge branch 'jk/textconv-cache-outside-repo-fix'
The code incorrectly attempted to use textconv cache when asked, even when we are not running in a repository, which has been corrected. * jk/textconv-cache-outside-repo-fix: userdiff: skip textconv caching when not in a repository
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
#include "userdiff.h"
|
||||
#include "attr.h"
|
||||
#include "strbuf.h"
|
||||
#include "environment.h"
|
||||
|
||||
static struct userdiff_driver *drivers;
|
||||
static int ndrivers;
|
||||
@ -459,7 +460,8 @@ struct userdiff_driver *userdiff_get_textconv(struct repository *r,
|
||||
if (!driver->textconv)
|
||||
return NULL;
|
||||
|
||||
if (driver->textconv_want_cache && !driver->textconv_cache) {
|
||||
if (driver->textconv_want_cache && !driver->textconv_cache &&
|
||||
have_git_dir()) {
|
||||
struct notes_cache *c = xmalloc(sizeof(*c));
|
||||
struct strbuf name = STRBUF_INIT;
|
||||
|
||||
|
Reference in New Issue
Block a user