diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java index 52625ff6c4..65a6f9daf8 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java @@ -172,10 +172,8 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand GitChangesetConverter converter = null; RevWalk revWalk = null; - try + try (org.eclipse.jgit.lib.Repository gr = open()) { - org.eclipse.jgit.lib.Repository gr = open(); - if (!gr.getAllRefs().isEmpty()) { int counter = 0; diff --git a/scm-ui/package.json b/scm-ui/package.json index f628a43276..e54baaba20 100644 --- a/scm-ui/package.json +++ b/scm-ui/package.json @@ -35,7 +35,7 @@ "start": "npm-run-all -p webfonts watch-css build-vendor start-js", "build-js": "ui-bundler bundle target/scm-ui.bundle.js", "build-vendor": "ui-bundler vendor target/vendor.bundle.js", - "build": "npm-run-all webfonts build-css build-vendor build-js", + "build": "npm-run-all -s webfonts build-css build-vendor build-js", "test": "ui-bundler test", "test-ci": "ui-bundler test --ci", "flow": "flow", diff --git a/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java b/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java index 43e7dbacb5..764e4f18d2 100644 --- a/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java +++ b/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java @@ -30,10 +30,10 @@ public class WebResourceServlet extends HttpServlet { /** * exclude api requests and the old frontend servlets. * - * TODO remove old protocol servlets + * TODO remove old protocol servlets and hook. Move /hook/hg to api? */ @VisibleForTesting - static final String PATTERN = "/(?!api/|git/|hg/|svn/|debug/).*"; + static final String PATTERN = "/(?!api/|git/|hg/|svn/|hook/).*"; private static final Logger LOG = LoggerFactory.getLogger(WebResourceServlet.class);