@Given("^I have a repository$") public void I_have_a_repository() throws Throwable { I_have_an_unconfigured_repository(); localRepo.runCommand(true, "config", "--global", "user.name", "John Doe"); localRepo.runCommand(true, "config", "--global", "user.email", "JohnDoe@example.com"); }
@Given("^I have a repository$") public void I_have_a_repository() throws Throwable { I_have_an_unconfigured_repository(); localRepo.runCommand(true, "config", "--global", "user.name", "John Doe"); localRepo.runCommand(true, "config", "--global", "user.email", "JohnDoe@example.com"); }
@Given("^I have a repository$") public void I_have_a_repository() throws Throwable { I_have_an_unconfigured_repository(); localRepo.runCommand(true, "config", "--global", "user.name", "John Doe"); localRepo.runCommand(true, "config", "--global", "user.email", "JohnDoe@example.com"); }
@Given("^I have a repository with a remote$") public void I_have_a_repository_with_a_remote() throws Throwable { I_have_an_unconfigured_repository(); CLIContext remoteRepo = createRemote("remoterepo"); final URI remoteURI = remoteRepo.repositoryURI; localRepo.runCommand(true, "config", "--global", "user.name", "John Doe"); localRepo.runCommand(true, "config", "--global", "user.email", "JohnDoe@example.com"); String uriArg = remoteURI.toString(); localRepo.runCommand(true, "remote", "add", "origin", uriArg); }
@Given("^I have a repository with a remote$") public void I_have_a_repository_with_a_remote() throws Throwable { I_have_an_unconfigured_repository(); CLIContext remoteRepo = createRemote("remoterepo"); final URI remoteURI = remoteRepo.repositoryURI; localRepo.runCommand(true, "config", "--global", "user.name", "John Doe"); localRepo.runCommand(true, "config", "--global", "user.email", "JohnDoe@example.com"); String uriArg = remoteURI.toString(); localRepo.runCommand(true, "remote", "add", "origin", uriArg); }
@Given("^I have a repository with a remote$") public void I_have_a_repository_with_a_remote() throws Throwable { I_have_an_unconfigured_repository(); CLIContext remoteRepo = createRemote("remoterepo"); final URI remoteURI = remoteRepo.repositoryURI; localRepo.runCommand(true, "config", "--global", "user.name", "John Doe"); localRepo.runCommand(true, "config", "--global", "user.email", "JohnDoe@example.com"); String uriArg = remoteURI.toString(); localRepo.runCommand(true, "remote", "add", "origin", uriArg); }