From 81dc577362a66d23fb3107a85df6607e78d12672 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 7 Sep 2018 01:58:28 -0400 Subject: [PATCH] Adds another git warning --- src/git/git.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/git/git.ts b/src/git/git.ts index 9eca893..a5d1f7a 100644 --- a/src/git/git.ts +++ b/src/git/git.ts @@ -61,7 +61,8 @@ const GitWarnings = { foundButNotInRevision: /Path \'.*?\' exists on disk, but not in/i, headNotABranch: /HEAD does not point to a branch/i, noUpstream: /no upstream configured for branch \'(.*?)\'/i, - unknownRevision: /ambiguous argument \'.*?\': unknown revision or path not in the working tree|not stored as a remote-tracking branch/i + unknownRevision: /ambiguous argument \'.*?\': unknown revision or path not in the working tree|not stored as a remote-tracking branch/i, + mustRunInWorkTree: /this operation must be run in a work tree/i }; interface GitCommandOptions extends RunOptions {