Permalink
Browse files

Merge pull request #40 from woloski/patch-1

changed path.join on Git.readFile calls since Windows will use backslash...
  • Loading branch information...
2 parents d564bf8 + d2f477f commit f74d8c23a9b287228341deb7781cc35a34c436d3 @creationix committed Jan 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/wheat/data.js
View
@@ -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; }
@@ -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; }

0 comments on commit f74d8c2

Please sign in to comment.