Return this from InstallLfsCommand.setRepository() to allow chaining

Change-Id: I105f1f62f2dcdb20a196361190e9c9fe368e8613
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2018-03-04 21:26:33 +01:00
parent 0e188c5920
commit 28167853c1
1 changed files with 5 additions and 1 deletions

View File

@ -102,12 +102,16 @@ public Void call() throws Exception {
}
/**
* Set the repository to install LFS for
*
* @param repo
* the repository to install LFS into locally instead of the user
* configuration
* @return this command
*/
public void setRepository(Repository repo) {
public InstallLfsCommand setRepository(Repository repo) {
this.repository = repo;
return this;
}
private StoredConfig loadUserConfig() throws IOException {