aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/src
diff options
context:
space:
mode:
authorThomas Wolf <twolf@apache.org>2022-07-30 00:27:49 +0200
committerThomas Wolf <twolf@apache.org>2022-08-03 07:42:27 +0200
commit8184683f7e8d0e62bb70ff27af92dcc2d7332939 (patch)
treeea2bbcb361f919369ce49efa22680e06f299c418 /org.eclipse.jgit.test/src
parent59e8bec6e7705a89b5d0b9c6ac004b323ffa16b0 (diff)
downloadjgit-8184683f7e8d0e62bb70ff27af92dcc2d7332939.tar.gz
jgit-8184683f7e8d0e62bb70ff27af92dcc2d7332939.zip
CleanCommand: fix prefix matching
String.startsWith() is not a valid test for file path prefixes: directory "a" is _not_ a prefix of a file "ab", only of "a/b". Add a proper Paths.isEqualOrPrefix() method and use it in CleanCommand. Bug: 580478 Change-Id: I6863e6ba94a8ffba6561835cc57044a0945d2770 Signed-off-by: Thomas Wolf <twolf@apache.org>
Diffstat (limited to 'org.eclipse.jgit.test/src')
0 files changed, 0 insertions, 0 deletions