mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 06:33:28 +00:00
9 lines
297 B
CoffeeScript
9 lines
297 B
CoffeeScript
child_process = require('child_process')
|
|
|
|
exports.isGitDirectory = (directory, callback) ->
|
|
exports.execute 'status', directory, (error, stdout, stderr) ->
|
|
return callback(null, not error?)
|
|
|
|
exports.execute = (command, cwd, callback) ->
|
|
child_process.exec("git #{command}", { cwd }, callback)
|