Commit `_pathset` cache illegal if `pathtype` is not None/Empty
The paths
method of the Commit
class checks if a _pathset
has been cached and returns this regardless of the value of the pathtype
filter. Additionally, if a _pathset
has not been cached then it is built using the filter, which means it is then invalid for future non-filtered calls.
The correct behaviour should be to always return a fresh pathset if the pathtype
filter is non-empty.