Merge branch 'nd/magic-pathspec'
All callers to parse_pathspec() must choose between getting no pathspec or one path that is limited to the current directory when there is no paths given on the command line, but there were two callers that violated this rule, triggering a BUG(). * nd/magic-pathspec: Fix calling parse_pathspec with no paths nor PATHSPEC_PREFER_* flags
This commit is contained in:
@ -760,7 +760,8 @@ void line_log_init(struct rev_info *rev, const char *prefix, struct string_list
|
||||
r = r->next;
|
||||
}
|
||||
paths[count] = NULL;
|
||||
parse_pathspec(&rev->diffopt.pathspec, 0, 0, "", paths);
|
||||
parse_pathspec(&rev->diffopt.pathspec, 0,
|
||||
PATHSPEC_PREFER_FULL, "", paths);
|
||||
free(paths);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user