From 58a43418fa7c0ed14150e3f0124242fe890bbc68 Mon Sep 17 00:00:00 2001 From: RoboPhred Date: Fri, 29 Apr 2016 14:37:42 -0700 Subject: [PATCH] Fix in.js. Fix '.' being included in version --- in.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/in.js b/in.js index fb7b0df..2b4bd36 100644 --- a/in.js +++ b/in.js @@ -4,6 +4,8 @@ const exec = require("child_process").exec; const xml2js = require("xml2js"); +const shared = require("./shared"); + const success = shared.success; const fail = shared.fail; const hide = shared.hide; @@ -79,7 +81,7 @@ process.stdin.on("data", stdin => { fail(new Error('unexpected svn output. expected revision, got "' + lines.slice(lines.length - 5).join("\n") + '"')); } - const rev = revLine.substr(header.length, revLine.length - header.length - 1); + const rev = revLine.substr(header.length, revLine.length - header.length - 2); success({ "version": { "revision": rev