Skip to content

Commit

Permalink
Fixed reference exception in UpdateHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzapp committed Aug 5, 2017
1 parent bd06a79 commit 26ff020
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Server/Helpers/UpdateHelper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const ChildProcess = require('child_process');
const ZLib = require('zlib');
const Path = require('path');
const FileSystem = require('fs');
const SemanticVersion = require('semver');
Expand Down Expand Up @@ -88,7 +87,7 @@ class UpdateHelper {
debug.log('Checking out stable branch...', this);

return new Promise((resolve, reject) => {
let git = exec('git checkout stable', {
let git = ChildProcess.exec('git checkout stable', {
cwd: appRoot
});

Expand All @@ -115,7 +114,7 @@ class UpdateHelper {
debug.log('Pulling update from GitHub...', this);

return new Promise((resolve, reject) => {
let git = exec('git pull origin stable', {
let git = ChildProcess.exec('git pull origin stable', {
cwd: appRoot
});

Expand Down

0 comments on commit 26ff020

Please sign in to comment.