diff --git a/cli/src/main/java/org/openjdk/skara/cli/GitSync.java b/cli/src/main/java/org/openjdk/skara/cli/GitSync.java index 767b248d5..4b71c8911 100644 --- a/cli/src/main/java/org/openjdk/skara/cli/GitSync.java +++ b/cli/src/main/java/org/openjdk/skara/cli/GitSync.java @@ -38,12 +38,6 @@ private static IOException die(String message) { return new IOException("will never reach here"); } - private static int fetch() throws IOException, InterruptedException { - var pb = new ProcessBuilder("git", "fetch"); - pb.inheritIO(); - return pb.start().waitFor(); - } - private static int pull() throws IOException, InterruptedException { var pb = new ProcessBuilder("git", "pull"); pb.inheritIO(); @@ -71,10 +65,6 @@ public static void main(String[] args) throws IOException, InterruptedException .fullname("pull") .helptext("Pull current branch from origin after successful sync") .optional(), - Switch.shortcut("") - .fullname("fetch") - .helptext("Fetch current branch from origin after successful sync") - .optional(), Switch.shortcut("m") .fullname("mercurial") .helptext("Force use of mercurial") @@ -165,13 +155,6 @@ public static void main(String[] args) throws IOException, InterruptedException System.out.println("done"); } - if (arguments.contains("fetch")) { - int err = fetch(); - if (err != 0) { - System.exit(err); - } - } - if (arguments.contains("pull")) { int err = pull(); if (err != 0) {