summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
authorMatthaus Owens <matthaus@puppetlabs.com>2016-07-29 15:21:20 -0700
committerMatthaus Owens <matthaus@puppetlabs.com>2016-08-04 13:38:52 -0700
commite1ffab1cac55179011777b9a60bac447b0a62ccf (patch)
tree157fc203415b4f85e86f1e75ee026451138e8af5 /org.eclipse.jgit.junit
parent0ee89f01be7174d61ac3ac6af9805936b18818e5 (diff)
downloadjgit-e1ffab1cac55179011777b9a60bac447b0a62ccf.tar.gz
jgit-e1ffab1cac55179011777b9a60bac447b0a62ccf.zip
Skip cleaning inner repositories by default in CleanCommand
Previously jgit would attempt to clean git repositories that had not been committed by calling a non-recursive delete on them, which would fail as they are directories. This commit addresses that issue in the following ways. Repositories are skipped in a default clean, similarly to cgit and only cleaned when the force flag is applied. When the force flag is applied repositories are deleted using a recursive delete call. The force flag and setForce method are added here to CleanCommand to support this change. Bug: 498367 Change-Id: Ib6cfff65a033d0d0f76395060bf76719e13fc467 Signed-off-by: Matthaus Owens <matthaus@puppetlabs.com>
Diffstat (limited to 'org.eclipse.jgit.junit')
0 files changed, 0 insertions, 0 deletions