From 14ee058d4881eb3d54cb1cbb0985f4a83f88c4cc Mon Sep 17 00:00:00 2001 From: iotcat Date: Tue, 31 Dec 2019 11:42:55 +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 f424535..6e243d5 100644 --- a/index.js +++ b/index.js @@ -10,9 +10,9 @@ const git = require('simple-git')(); */ -git.pull('origin', 'master', {'--no-rebase': null}); +git.pull('origin', 'master', {'--no-rebase': null}, ()=>{console.log('pull')}); git.add('./*') .commit("Committed by cron-git auto") - .push(['-u', 'origin', 'master'], (s) => console.log(s+'git push done!!')); \ No newline at end of file + .push(['-u', 'origin', 'master'], () => console.log('git push done!!')); \ No newline at end of file