diff --git a/lib/cli/commands/site.js b/lib/cli/commands/site.js index ee70b6e1a..d04c59f45 100644 --- a/lib/cli/commands/site.js +++ b/lib/cli/commands/site.js @@ -1,4 +1,4 @@ -/*** Generated by streamline 0.2.5 - DO NOT EDIT ***/ +/*** Generated by streamline 0.3.6 (callbacks) - DO NOT EDIT ***/ var __rt=require('streamline/lib/callbacks/runtime').runtime(__filename),__func=__rt.__func,__cb=__rt.__cb,__tryCatch=__rt.__tryCatch,__propagate=__rt.__propagate,__trap=__rt.__trap,__future=__rt.__future,__setEF=__rt.__setEF,__g=__rt.__g; /* 1 */ var common = require("../common"); /* 17 */ var fs = require("fs"); @@ -226,11 +226,11 @@ var __rt=require('streamline/lib/callbacks/runtime').runtime(__filename),__func= return (function ___(__then) { (function ___(_) { __tryCatch(_, function __$determineIfCurrentDirectoryIsGitWorkingTree() { -/* 209 */ return exec("git rev-parse --is-inside-work-tree", __cb(_, __frame, 4, 37, function ___(__0, __1) { +/* 209 */ return exec("git rev-parse --git-dir", __cb(_, __frame, 4, 37, function ___(__0, __1) { isInsideWorkTree = __1; /* 210 */ lines = (isInsideWorkTree.stdout + isInsideWorkTree.stderr); /* 211 */ context.flags.isGitWorkingTree = lines.split("\n").some(function(line) { -/* 212 */ return (line === "true"); +/* 212 */ return (line === ".git"); }); __then(); }, true)); diff --git a/lib/cli/commands/site_.js b/lib/cli/commands/site_.js index a22fd204d..12196c0e3 100644 --- a/lib/cli/commands/site_.js +++ b/lib/cli/commands/site_.js @@ -206,10 +206,10 @@ exports.init = function (cli) { log.silly('determineIfCurrentDirectoryIsGitWorkingTree'); try { - var isInsideWorkTree = exec('git rev-parse --is-inside-work-tree', _); + var isInsideWorkTree = exec('git rev-parse --git-dir', _); var lines = isInsideWorkTree.stdout + isInsideWorkTree.stderr; context.flags.isGitWorkingTree = lines.split('\n').some(function (line) { - return line === 'true'; + return line === '.git'; }); } catch (err) { context.flags.isGitWorkingTree = false;