private boolean isShallow(Remote remote) { try (IRemoteRepo repo = command(OpenRemote.class).setRemote(remote).call()) { Integer depth = repo.getDepth().or(0); if (depth.intValue() > 0) { return true; } } return false; }
private boolean isShallow(Remote remote) { try (IRemoteRepo repo = command(OpenRemote.class).setRemote(remote).call()) { Integer depth = repo.getDepth().or(0); if (depth.intValue() > 0) { return true; } } return false; }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).call(); }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).call(); }
IRemoteRepo openRemote(Context localRepo) { return localRepo.command(OpenRemote.class).setRemote(buildRemote()).call(); }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); } }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); } }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); }
private IRemoteRepo openRemote(Remote remote) { return command(OpenRemote.class).setRemote(remote).readOnly().call(); }
private void remotePing(CommandContext context, final Context geogig) { Optional<Remote> remote; try { remote = geogig.command(RemoteResolve.class).setName(remoteName).call(); } catch (RemoteException re) { throw new CommandSpecException(re.statusCode.toString(), HttpStatus.BAD_REQUEST); } boolean remotePingResponse = false; if (remote.isPresent()) { try (IRemoteRepo rr = geogig.command(OpenRemote.class).setRemote(remote.get()) .readOnly().call()) { rr.headRef(); remotePingResponse = true; } catch (Exception e) { // Do nothing, we will write the response later. } } final boolean pingSuccess = remotePingResponse; context.setResponseContent(new CommandResponse() { @Override public void write(ResponseWriter out) throws Exception { out.start(); out.writeRemotePingResponse(pingSuccess); out.finish(); } }); }