Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit 3e3663a

Browse files
exdxsanfilip
authored andcommitted
fix git cwd path
fix git cwd path
1 parent 7378aa5 commit 3e3663a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/jobs/create.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,9 @@ function create(params, cb) {
326326
if (err) {
327327
//exit - not a git repo
328328
}
329+
console.log(params.workspace)
329330
var revision = require('child_process')
330-
.execSync('git rev-parse --short HEAD', cwd=params.workspace)
331+
.execSync('git rev-parse --short HEAD', {cwd:params.workspace})
331332
.toString().trim()
332333
params.codeCommit = revision
333334
console.log(params.codeCommit)

0 commit comments

Comments
 (0)