Browse files

changed path.join on Git.readFile calls since Windows will use backsl…

…ash and that will break git show commands (that expects a forward slash %sha%/articles/control-flow.markdown)
  • Loading branch information...
1 parent d564bf8 commit d2f477fa84d7ab551c55d7541b153c0e16a683db woloski committed Jan 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/wheat/data.js
View
4 lib/wheat/data.js
@@ -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 d2f477f

Please sign in to comment.