Skip to content

Commit

Permalink
If the partial-dir value is relative, add a directory-exclude for it
Browse files Browse the repository at this point in the history
to the end of the user's exclude list.
  • Loading branch information
Wayne Davison committed Sep 22, 2004
1 parent 9a5e37f commit 13791b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions options.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,10 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
if (partial_dir) {
if (!*partial_dir || strcmp(partial_dir, ".") == 0)
partial_dir = NULL;
else if (*partial_dir != '/') {
add_exclude(&exclude_list, partial_dir,
XFLG_DIRECTORY);
}
keep_partial = 1;
}
}
Expand Down

0 comments on commit 13791b1

Please sign in to comment.