Unverified Commit 751c0e56 authored by Tyler Wanek's avatar Tyler Wanek Committed by GitHub

Merge pull request #1346 from rcjsuen/posix-path

Fix example by forcing backslashes with path.posix
parents f7d04046 11efffd4
......@@ -46,7 +46,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
.then(function() {
// this file is in a subdirectory and can use a relative path
return index.addByPath(path.join(directoryName, fileName));
return index.addByPath(path.posix.join(directoryName, fileName));
.then(function() {
// this will write both files to the index
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment