We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7d0404 + 11efffd commit 751c0e5Copy full SHA for 751c0e5
1 file changed
examples/add-and-commit.js
@@ -46,7 +46,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
46
})
47
.then(function() {
48
// this file is in a subdirectory and can use a relative path
49
- return index.addByPath(path.join(directoryName, fileName));
+ return index.addByPath(path.posix.join(directoryName, fileName));
50
51
52
// this will write both files to the index
0 commit comments