Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WINESYNC] Elegantly handle empty 'files' and 'directories' lists.
Expand on Timo's commit 4b5a555. We may encounter cases where either the 'directories' or 'files' lists in the .cfg YAML files are empty, and we don't want the script to throw an exception in that case. Furthermore, explicitly check for such empty lists when calling PyGit2 index.add_all(...) function, because if it's called on a None or empty list, _all_ untracked files in the selected git repository get added, which is not what we want there.
- Loading branch information