Skip to content

Commit 8ab40d8

Browse files
committed
Fix clone with filesytem for windows
1 parent f9ace65 commit 8ab40d8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/tests/clone.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ describe("Clone", function() {
6969
});
7070

7171
it("can clone with filesystem", function() {
72-
var url = "file://" + path.resolve("test/repos/empty");
72+
var prefix = process.platform === "win32" ? "" : "file://";
73+
var url = prefix + path.resolve("test/repos/empty");
7374

7475
return Clone.clone(url, file).then(function(repository) {
7576
assert.ok(repository instanceof Repository);

0 commit comments

Comments
 (0)