不要怂,就是干,撸起袖子干!

Commit ff4b7850 by Jan Aagaard Meier

Merge pull request #1885 from sarme/master

Bug fix - corrected detection of relative paths in import function.
2 parents c573b6e5 b558440c
Showing with 1 additions and 1 deletions
......@@ -428,7 +428,7 @@ module.exports = (function() {
*/
Sequelize.prototype.import = function(path) {
// is it a relative path?
if (Path.normalize(path).indexOf(path.sep) !== 0) {
if(Path.normalize(path) !== Path.resolve(path)){
// make path relative to the caller
var callerFilename = Utils.stack()[1].getFileName()
, callerPath = Path.dirname(callerFilename);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!