Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-sync --fetch is a no-op #256

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -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) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.