diff --git a/index.js b/index.js index e1c34cf..0b26b16 100644 --- a/index.js +++ b/index.js @@ -10,9 +10,9 @@ const git = require('simple-git')(); */ -git.pull('origin', 'master', {'--no-rebase': null}, ()=>{console.log(new Date() + ' - cron-git: git pull done.')}); +git.pull('origin', 'master', {'--no-rebase': null}, ()=>{console.log(new Date() + ' - cron-git: git pull done.' + require('os').hostname())}); git.add('./*') .commit("Committed by cron-git auto") - .push(['-u', 'origin', 'master'], () => console.log(new Date() + ' - cron-git: git pull done.')); \ No newline at end of file + .push(['-u', 'origin', 'master'], () => console.log(new Date() + ' - cron-git: git push done.')); \ No newline at end of file