This commit is contained in:
René Pfeuffer
2018-08-31 10:45:22 +02:00
3 changed files with 4 additions and 6 deletions

View File

@@ -172,10 +172,8 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand
GitChangesetConverter converter = null; GitChangesetConverter converter = null;
RevWalk revWalk = null; RevWalk revWalk = null;
try try (org.eclipse.jgit.lib.Repository gr = open())
{ {
org.eclipse.jgit.lib.Repository gr = open();
if (!gr.getAllRefs().isEmpty()) if (!gr.getAllRefs().isEmpty())
{ {
int counter = 0; int counter = 0;

View File

@@ -35,7 +35,7 @@
"start": "npm-run-all -p webfonts watch-css build-vendor start-js", "start": "npm-run-all -p webfonts watch-css build-vendor start-js",
"build-js": "ui-bundler bundle target/scm-ui.bundle.js", "build-js": "ui-bundler bundle target/scm-ui.bundle.js",
"build-vendor": "ui-bundler vendor target/vendor.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": "ui-bundler test",
"test-ci": "ui-bundler test --ci", "test-ci": "ui-bundler test --ci",
"flow": "flow", "flow": "flow",

View File

@@ -30,10 +30,10 @@ public class WebResourceServlet extends HttpServlet {
/** /**
* exclude api requests and the old frontend servlets. * 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 @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); private static final Logger LOG = LoggerFactory.getLogger(WebResourceServlet.class);