UNPKG
gploy
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A continuous deployment server for automatic development
github.com/geNAZt/gPloy
geNAZt/gPloy
gploy
/
lib
/
gPloy
/
repo
/
git.js
9 lines
(7 loc)
•
238 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
var exec =
require
(
'child_process'
).exec;
module
.exports = gitUpdate;
function
gitUpdate
(config, cb)
{ exec(
"git pull "
+
config
.origin +
" "
+
config
.branch, {cwd:
config
.workDir},
function
(err)
{ cb(err); }); }