Skip to content

Commit

Permalink
Merge pull request #25 from WickedyMike/master
Browse files Browse the repository at this point in the history
bugfix: make it functional on non-windows environments...
  • Loading branch information
brechtvdv committed Sep 17, 2018
2 parents 769d1b0 + 216ad87 commit 2842387
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/Git/Git.ts
Expand Up @@ -6,6 +6,7 @@ import fs = require("fs");
const GitUrlParse = require("git-url-parse");
const shellJs = require("shelljs");
const simpleGit = require("simple-git");
const path = require('path');

/**
* This class is responsible for managing a local copy of a
Expand Down Expand Up @@ -52,7 +53,7 @@ export class GitRepoManager {
const parsedURL = GitUrlParse(this.repoURL);
this.repoName = parsedURL.name;
this.ownerName = parsedURL.owner;
this.repoDir = this.workingDir + "\\" + this.repoName;
this.repoDir = this.workingDir + path.sep + this.repoName;

// If it doesn't exists, create the working directory.
this.createFoldersIfNeeded(this.workingDir);
Expand Down

0 comments on commit 2842387

Please sign in to comment.