Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit d2f477fa84d7ab551c55d7541b153c0e16a683db 1 parent d564bf8
woloski authored
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; }
Please sign in to comment.
Something went wrong with that request. Please try again.