Skip to content

Commit 9ef7a84

Browse files
committed
get it to work still on macOS
1 parent 206efb9 commit 9ef7a84

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixBuiltinActions.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export function gitPushSetUpstream(): ITerminalQuickFixInternalOptions {
128128
type: 'internal',
129129
commandLineMatcher: GitPushCommandLineRegex,
130130
/**
131-
Example output:
131+
Example output on Windows:
132132
8: PS C:\Users\merogge\repos\xterm.js> git push
133133
7: fatal: The current branch sdjfskdjfdslkjf has no upstream branch.
134134
6: To push the current branch and set the remote as upstream, use
@@ -138,12 +138,20 @@ export function gitPushSetUpstream(): ITerminalQuickFixInternalOptions {
138138
2: To have this happen automatically for branches without a tracking
139139
1: upstream, see 'push.autoSetupRemote' in 'git help config'.
140140
0:
141+
142+
Example output on macOS:
143+
5: meganrogge@Megans-MacBook-Pro xterm.js % git push
144+
4: fatal: The current branch merogge/asjdkfsjdkfsdjf has no upstream branch.
145+
3: To push the current branch and set the remote as upstream, use
146+
2:
147+
1: git push --set-upstream origin merogge/asjdkfsjdkfsdjf
148+
0:
141149
*/
142150
outputMatcher: {
143151
lineMatcher: GitPushOutputRegex,
144152
anchor: 'bottom',
145-
offset: 3,
146-
length: 3
153+
offset: 0,
154+
length: 7
147155
},
148156
commandExitResult: 'error',
149157
getQuickFixes: (matchResult: ITerminalCommandMatchResult) => {

0 commit comments

Comments
 (0)