Skip to content

Commit 02a844a

Browse files
committed
1 parent 4026f75 commit 02a844a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,22 @@ export function gitPushSetUpstream(): ITerminalQuickFixInternalOptions {
127127
id: 'Git Push Set Upstream',
128128
type: 'internal',
129129
commandLineMatcher: GitPushCommandLineRegex,
130+
/**
131+
8 PS C:\Users\merogge\repos\xterm.js> git push
132+
7 fatal: The current branch sdjfskdjfdslkjf has no upstream branch.
133+
6 To push the current branch and set the remote as upstream, use
134+
5
135+
4 git push --set-upstream origin sdjfskdjfdslkjf
136+
3
137+
2 To have this happen automatically for branches without a tracking
138+
1 upstream, see 'push.autoSetupRemote' in 'git help config'.
139+
0
140+
*/
130141
outputMatcher: {
131142
lineMatcher: GitPushOutputRegex,
132143
anchor: 'bottom',
133-
offset: 0,
134-
length: 5
144+
offset: 3,
145+
length: 2
135146
},
136147
commandExitResult: 'error',
137148
getQuickFixes: (matchResult: ITerminalCommandMatchResult) => {

0 commit comments

Comments
 (0)