FetchCommand.setShallowSince() and Transport.setDeepenSince() require
a non-null argument.
Change-Id: I1c3a20be518374e380a4e90787ed834438da40ee
Signed-off-by: Thomas Wolf <twolf@apache.org>
if (depth != null) {
command.setDepth(depth.intValue());
}
- command.setShallowSince(shallowSince);
+ if (shallowSince != null) {
+ command.setShallowSince(shallowSince);
+ }
command.setShallowExcludes(shallowExcludes);
configure(command);
}
transport.setDepth(Constants.INFINITE_DEPTH);
}
- transport.setDeepenSince(deepenSince);
+ if (deepenSince != null) {
+ transport.setDeepenSince(deepenSince);
+ }
transport.setDeepenNots(shallowExcludes);
configure(transport);
FetchResult result = transport.fetch(monitor,