Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interoperability with Windows OS #5

Merged
merged 1 commit into from
Jun 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ var crypto = require('crypto')
var EventEmitter = require('events').EventEmitter
var fs = require('fs')
var path = require('path')
var npmPath = require('npm-path')
var os = require('os')
var spawn = require('child_process').spawn
var Step = require('step')

var PATH = process.env.PATH
var PATH = npmPath.PATH

var emitter

Expand Down Expand Up @@ -177,7 +178,7 @@ function clone(args, baseDir, privKey, cb) {
}

function addPath(str) {
PATH = PATH + ":" + str
PATH = PATH + npmPath.SEPARATOR + str
}

module.exports = {
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
"description": "Easy Node.JS Git wrapper with support for SSH keys",
"version": "0.3.1",
"homepage": "https://github.com/niallo/Gitane",
"keywords":["git", "ssh", "strider"],
"keywords": [
"git",
"ssh",
"strider"
],
"repository": {
"type": "git",
"url": "git://github.com/niallo/Gitane.git"
},
"main": "index.js",
"dependencies": {
"npm-path": "^1.0.1",
"step": "~0.0.5"
},
"devDependencies": {
Expand Down