afloyd/mongo-migrate — pull request #17 by jbrechtel (2014-07-09 15:37:03+00:00)
Title: Always read cwd from process.cwd() so that it is always an absolute path...

When using -c to change the current directory you'll often want to use a relative path for the new directory. A relative path will break loading the config file when using that in the require() line (on 246 in the original code). If instead the cwd is already read from process then you'll always get an absolute path and require() will work.