Merge branch 'jc/setup'
* jc/setup: builtin-mv: minimum fix to avoid losing files git-add: adjust to the get_pathspec() changes. Make blame accept absolute paths setup: sanitize absolute and funny paths in get_pathspec()
This commit is contained in:
@ -1894,9 +1894,7 @@ static unsigned parse_score(const char *arg)
|
||||
|
||||
static const char *add_prefix(const char *prefix, const char *path)
|
||||
{
|
||||
if (!prefix || !prefix[0])
|
||||
return path;
|
||||
return prefix_path(prefix, strlen(prefix), path);
|
||||
return prefix_path(prefix, prefix ? strlen(prefix) : 0, path);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user