Skip to content

Commit 6d99522

Browse files
committed
[fix] a rogue symlink made this bot "fix" itself
1 parent d2cde86 commit 6d99522

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function commitRepo(link, forkedRepo, repoLocation, status, cb) {
502502
return cb(null, 'DONE');
503503
}
504504
var gitDir, cmd, child, message;
505-
message = "[fix] Changed require('util') to require('util') for compatibility with node v0.8";
505+
message = "[fix] Changed require('sys') to require('util') for compatibility with node v0.8";
506506
gitDir = path.resolve(path.join(repoLocation, '.git')).toString();
507507
app.log.info("Attempting a commit on " + repoLocation.yellow.bold);
508508
cmd = 'git --git-dir="' + gitDir + '" --work-tree="' + repoLocation + '" commit -am "' + message + '"';
@@ -894,7 +894,7 @@ function doFileUpdate(filename, cb) {
894894
});
895895

896896
} else {
897-
app.log.debug('No ' + 'require(\'util\')'.magenta.bold + ' text found in ' + filename.yellow.bold);
897+
app.log.debug('No ' + 'require(\'sys\')'.magenta.bold + ' text found in ' + filename.yellow.bold);
898898
return cb(null, 'DONE');
899899
}
900900
});

test/change_just_util.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
21
var yo = require('sys');
32
var system = "2";
43
yo.puts("sys should be replaced with util, but not in this output or "+system);
54
yo.puts("1 ");
65
yo.puts("2");
7-
yo.puts("3");
8-
6+
yo.puts("3");

tmp/tmp.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)