Examples of git()


Examples of com.atlassian.jgitflow.core.JGitFlow.git()

        gfGit = Git.cloneRepository().setDirectory(workDir).setURI("file://" + remoteGit.getRepository().getWorkTree().getPath()).call();
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(gfGit.getRepository().getWorkTree()).setInitContext(ctx).call();

        flow.git().checkout().setName(flow.getDevelopBranchName()).call();
        assertEquals(flow.getDevelopBranchName(), flow.git().getRepository().getBranch());
       
        File gitDir = gfGit.getRepository().getDirectory();
        File gitConfig = new File(gitDir, "config");

        assertTrue(gitConfig.exists());
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.git()

        remoteGit = RepoUtil.createRepositoryWithBranches(newDir(), "own");
        gfGit = Git.cloneRepository().setDirectory(workDir).setURI("file://" + remoteGit.getRepository().getWorkTree().getPath()).call();
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(gfGit.getRepository().getWorkTree()).setInitContext(ctx).call();

        flow.git().checkout().setName(flow.getDevelopBranchName()).call();
        assertEquals(flow.getDevelopBranchName(), flow.git().getRepository().getBranch());
       
        File gitDir = gfGit.getRepository().getDirectory();
        File gitConfig = new File(gitDir, "config");
View Full Code Here

Examples of com.jcabi.github.Repo.git()

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void iteratesReferences() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/br", "qweqwe");
        refs.create("refs/tags/t1", "111t222");
        MatcherAssert.assertThat(
            refs.iterate(),
            Matchers.<Reference>iterableWithSize(2)
View Full Code Here

Examples of com.jcabi.github.Repo.git()

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void iteratesReferencesInSubNamespace() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/br", "qweqwe");
        refs.create("refs/tags/t1", "111t222");
        MatcherAssert.assertThat(
            refs.iterate("heads"),
            Matchers.<Reference>iterableWithSize(1)
View Full Code Here

Examples of com.jcabi.github.Repo.git()

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void iteratesTags() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/tags/t2", "2322f34");
        MatcherAssert.assertThat(
            refs.tags(),
            Matchers.<Reference>iterableWithSize(1)
        );
View Full Code Here

Examples of com.jcabi.github.Repo.git()

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void iteratesHeads() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/branch2", "blahblah");
        MatcherAssert.assertThat(
            refs.heads(),
            Matchers.<Reference>iterableWithSize(1)
        );
View Full Code Here

Examples of com.jcabi.github.Repo.git()

     * @throws Exception - If something goes wrong.
     */
    @Test
    public void removesReference() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/testbr", "qweqwe22");
        refs.create("refs/tags/t2", "111teee");
        MatcherAssert.assertThat(
            refs.iterate(),
            Matchers.<Reference>iterableWithSize(2)
View Full Code Here

Examples of com.jcabi.github.Repo.git()

                    .add("content", "hello")
                    .build()
            ).build()
        ).build();
        final Repo repo = this.repo();
        repo.git().trees().create(json);
        MatcherAssert.assertThat(
            repo.git().trees().getRec(sha).json().getString("sha"),
            Matchers.containsString(sha)
        );
    }
View Full Code Here

Examples of com.jcabi.github.Repo.git()

            ).build()
        ).build();
        final Repo repo = this.repo();
        repo.git().trees().create(json);
        MatcherAssert.assertThat(
            repo.git().trees().getRec(sha).json().getString("sha"),
            Matchers.containsString(sha)
        );
    }

    /**
 
View Full Code Here

Examples of com.jcabi.github.Repo.git()

     */
    @Test
    public void canFetchOwnRepo() throws Exception {
        final Repo repo = repo();
        MatcherAssert.assertThat(
            repo.git().repo(),
            Matchers.equalTo(repo)
        );
    }

    /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.