From d1d63a9cdad267bef5546e16af3b8ba6979f725b Mon Sep 17 00:00:00 2001 From: iotcat Date: Tue, 31 Dec 2019 11:45:48 +0000 Subject: [PATCH] Committed by cron-git auto --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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