diff --git a/src/main/java/org/nqm/command/GitCommand.java b/src/main/java/org/nqm/command/GitCommand.java index fc7d037..a85c44d 100644 --- a/src/main/java/org/nqm/command/GitCommand.java +++ b/src/main/java/org/nqm/command/GitCommand.java @@ -133,13 +133,6 @@ void rebaseOrigin(@Parameters(index = "0", paramLabel = "") String printOutput(forEachModuleDo("rebase", "%s/%s".formatted(ORIGIN, branch))); } - @Deprecated(forRemoval = true) - @Command(name = "fetch-origin", aliases = "fo", - description = "Download objects and refs specified by branch name from other repositories") - void fetchOrigin(@Parameters(index = "0", paramLabel = "") String branch) throws IOException { - printOutput(forEachModuleDo("fetch", ORIGIN, "%s:%s".formatted(branch, branch))); - } - @Command(name = CHECKOUT, aliases = "co", description = "Switch branches or restore working tree files") void checkout(@Parameters(index = "0", paramLabel = "") String branch) throws IOException { printOutput(forEachModuleDo(CHECKOUT, branch)); diff --git a/src/test/java/org/nqm/command/GitCommandIntTest.java b/src/test/java/org/nqm/command/GitCommandIntTest.java index 6f0c98f..f288825 100644 --- a/src/test/java/org/nqm/command/GitCommandIntTest.java +++ b/src/test/java/org/nqm/command/GitCommandIntTest.java @@ -446,28 +446,6 @@ void checkout_OK() throws IOException { "" + tempPath.getFileName()); } - @Test - void fetchOrigin_OK() throws IOException { - // given: - var repos = create_clone_gitRepositories("po_1_z", "po_2_zz", "po_3_zzz"); - gis.init(); - gis.spinOff("batabranch"); - commitFile(repos); - System.setIn(new ByteArrayInputStream("yes".getBytes())); - gis.push("batabranch", true, true, false); - gis.spinOff("master"); - commitFile(repos); - - // when: - resetOutputStreamTest(); - gis.fetchOrigin("batabranch"); - - // then: - assertThat(stripColors.apply(outCaptor.toString())) - .containsExactlyInAnyOrder("po_1_z", "po_2_zz", "po_3_zzz", - "" + tempPath.getFileName()); - } - @Test void stash_OK() throws IOException { // given: