Skip to content

Commit

Permalink
Added encoded string
Browse files Browse the repository at this point in the history
  • Loading branch information
You committed Apr 21, 2022
2 parents e22bdca + f34967b commit 8b3f00d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ exports.postCommit = (req, res, next) => {
changeFileAndCommit = (execProcess, commitText) => {
var logStream = fs.createWriteStream('site/src/app/app.component.html', { flags: 'a' });
logStream.write('<br/><p>' + commitText + '</p>');
execProcess.result('git diff', (err, response) => {
});
execProcess.result('cd site && git commit -am "New block commited." && git push https://Phantom-Intruder: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@github.com/Phantom-Intruder/site.git topic/work-on-site', (err, response) => {
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) => {
if (!err) {
console.log(response);
return false;
Expand Down

0 comments on commit 8b3f00d

Please sign in to comment.