diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java index a6ea66bc0..d450c6467 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java @@ -611,10 +611,12 @@ public class CloneCommand extends TransportCommand { * * @param callback * the callback + * @return {@code this} * @since 4.8 */ - public void setCallback(Callback callback) { + public CloneCommand setCallback(Callback callback) { this.callback = callback; + return this; } private static void validateDirs(File directory, File gitDir, boolean bare)