mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 21:57:51 +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)
|