fixed support for .gitignore
This commit is contained in:
parent
8f0001d293
commit
465bc51b39
2 changed files with 8 additions and 7 deletions
|
@ -55,8 +55,8 @@ fi
|
|||
# This ensures symlinks are not added
|
||||
if [ -d "$path" ]; then
|
||||
if [ "$FD" == "true" ]; then
|
||||
# we prefer fd because it respects .ignore
|
||||
fd -t f . "$path" -X yadm add
|
||||
# we prefer fd because it respects .ignore and .gitignore
|
||||
fd --no-require-git -t f . "$path" -X yadm add
|
||||
else
|
||||
find "$path" -type f -exec yadm add {} +
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue