Skip to content

Commit

Permalink
Merge pull request creationix#40 from woloski/patch-1
Browse files Browse the repository at this point in the history
changed path.join on Git.readFile calls since Windows will use backslash...
  • Loading branch information
creationix committed Jan 3, 2012
2 parents d564bf8 + d2f477f commit f74d8c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wheat/data.js
Expand Up @@ -209,7 +209,7 @@ var Data = module.exports = {
var props;
Step(
function getArticleMarkdown() {
Git.readFile(version, Path.join("articles", name + ".markdown"), this);
Git.readFile(version, "articles/" + name + ".markdown", this);
},
function (err, markdown) {
if (err) { callback(err); return; }
Expand Down Expand Up @@ -287,7 +287,7 @@ var Data = module.exports = {
callback(new Error("name is required"));
return;
}
Git.readFile(version, Path.join("authors", name + ".markdown"), this);
Git.readFile(version, "authors/" + name + ".markdown", this);
},
function process(err, markdown) {
if (err) { callback(err); return; }
Expand Down

0 comments on commit f74d8c2

Please sign in to comment.