diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Fetch.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Fetch.java index 846879388..f29740d8a 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Fetch.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Fetch.java @@ -137,7 +137,7 @@ void noRecurseSubmodules(@SuppressWarnings("unused") /** {@inheritDoc} */ @Override - protected void run() throws Exception { + protected void run() { try (Git git = new Git(db)) { FetchCommand fetch = git.fetch(); if (fsck != null) @@ -169,7 +169,7 @@ protected void run() throws Exception { return; showFetchResult(result); - } catch (GitAPIException e) { + } catch (GitAPIException | IOException e) { throw die(e.getMessage(), e); } }