Skip to content

Commit

Permalink
fixup! wt-status: expand added sparse directory entries
Browse files Browse the repository at this point in the history
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
  • Loading branch information
derrickstolee committed Jun 21, 2021
1 parent f462956 commit 4c65275
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wt-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,10 +709,9 @@ static void wt_status_collect_changes_initial(struct wt_status *s)
* tree and marking them with DIFF_STATUS_ADDED.
*/
struct strbuf base = STRBUF_INIT;
struct pathspec ps;
struct pathspec ps = { 0 };
struct tree *tree = lookup_tree(istate->repo, &ce->oid);

memset(&ps, 0, sizeof(ps));
ps.recursive = 1;
ps.has_wildcard = 1;
ps.max_depth = -1;
Expand Down

0 comments on commit 4c65275

Please sign in to comment.