Pass on shallowSince only if not null
FetchCommand.setShallowSince() and Transport.setDeepenSince() require a non-null argument. Change-Id: I1c3a20be518374e380a4e90787ed834438da40ee Signed-off-by: Thomas Wolf <twolf@apache.org>
This commit is contained in:
parent
ccad49a28c
commit
4f4204914c
|
@ -318,7 +318,9 @@ private FetchResult fetch(Repository clonedRepo, URIish u)
|
||||||
if (depth != null) {
|
if (depth != null) {
|
||||||
command.setDepth(depth.intValue());
|
command.setDepth(depth.intValue());
|
||||||
}
|
}
|
||||||
|
if (shallowSince != null) {
|
||||||
command.setShallowSince(shallowSince);
|
command.setShallowSince(shallowSince);
|
||||||
|
}
|
||||||
command.setShallowExcludes(shallowExcludes);
|
command.setShallowExcludes(shallowExcludes);
|
||||||
configure(command);
|
configure(command);
|
||||||
|
|
||||||
|
|
|
@ -227,7 +227,9 @@ public FetchResult call() throws GitAPIException, InvalidRemoteException,
|
||||||
}
|
}
|
||||||
transport.setDepth(Constants.INFINITE_DEPTH);
|
transport.setDepth(Constants.INFINITE_DEPTH);
|
||||||
}
|
}
|
||||||
|
if (deepenSince != null) {
|
||||||
transport.setDeepenSince(deepenSince);
|
transport.setDeepenSince(deepenSince);
|
||||||
|
}
|
||||||
transport.setDeepenNots(shallowExcludes);
|
transport.setDeepenNots(shallowExcludes);
|
||||||
configure(transport);
|
configure(transport);
|
||||||
FetchResult result = transport.fetch(monitor,
|
FetchResult result = transport.fetch(monitor,
|
||||||
|
|
Loading…
Reference in New Issue