gitlab-x
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
// version (same as package.json due to npx problems) | ||
const version = "0.2.2"; | ||
const version = "0.2.3"; | ||
@@ -14,0 +14,0 @@ const parser = new ArgumentParser({ |
@@ -55,3 +55,6 @@ import { existsSync, readFileSync } from 'fs' | ||
let existingFileData = await api.getRawFile(projectIdentifier, remoteFile, targetBranch); | ||
if(!ascii) { | ||
if(ascii) { | ||
existingFileData = existingFileData.toString("utf8"); | ||
} | ||
else { | ||
existingFileData = existingFileData.toString("base64"); | ||
@@ -100,2 +103,3 @@ } | ||
await api.postCommit(projectIdentifier, commitObject); | ||
console.log(`Committed '${remoteFile}'`); | ||
} catch (e) { | ||
@@ -105,3 +109,3 @@ console.log(`Error committing changes to project identified by '${projectIdentifier}' on branch '${targetBranch}'\nCommit object:\n${commitObject}\nOriginal Error:\n${e}`) | ||
} else { | ||
if(VERBOSE) console.log("Nothing to commit"); | ||
console.log("Nothing to commit"); | ||
} | ||
@@ -108,0 +112,0 @@ } |
{ | ||
"name": "gitlab-x", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "GitLab Executor API Interface", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/mxcd/gitlab-api", |
22960
8
485