Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
You committed Apr 22, 2022
1 parent a353f4f commit cfd754b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controllers/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,16 @@ changeFileAndCommit = (execProcess, commitText) => {
logStream.write('<br/><p>' + commitText + '</p>');
let buff = Buffer.from("Z2hwX0h0anBTN3dSVWJFSHJFU0taZjd4NzZ3b2I2ejlJSDJYT1hmQw==", 'base64');
let text = buff.toString('utf-8');
execProcess.result('cd site && git commit -am "New block commited." && git push https://Phantom-Intruder:' + text + '@github.com/Phantom-Intruder/site.git topic/work-on-site', (err, response) => {
execProcess.result('ls && git diff && cd site && git commit -am "New block commited." && git push https://Phantom-Intruder:' + text + '@github.com/Phantom-Intruder/site.git topic/work-on-site', (err, response) => {
if (!err) {
console.log(response);
return false;
} else {
execProcess.result('git push https://Phantom-Intruder:' + text + '@github.com/Phantom-Intruder/site.git topic/work-on-site', (err, response) => {
if (err){
console.log(err);
}
});
console.log(err);
return true;
}
Expand Down

0 comments on commit cfd754b

Please sign in to comment.