Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit f74d8c23a9b287228341deb7781cc35a34c436d3 2 parents d564bf8 + d2f477f
@creationix 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.