File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79643,7 +79643,9 @@ var require_utils4 = __commonJS({
7964379643 tl2.warning(`Failed to run git command with arguments: ${args.join(" ")}`);
7964479644 throw error;
7964579645 });
79646- result2.stdout = result2.stdout.replace("[command]/usr/bin/git " + args.join(" "), "").trim();
79646+ if (result2.stdout.startsWith("[command]")) {
79647+ result2.stdout.slice(result2.stdout.indexOf(" ") + 1).replace(args.join(" "), "").trim();
79648+ }
7964779649 return result2;
7964879650 });
7964979651 }
Original file line number Diff line number Diff line change @@ -273,9 +273,14 @@ async function gitOutput(
273273 tl . warning ( `Failed to run git command with arguments: ${ args . join ( ' ' ) } ` )
274274 throw error
275275 } )
276- result . stdout = result . stdout
277- . replace ( '[command]/usr/bin/git ' + args . join ( ' ' ) , '' )
278- . trim ( )
276+ if ( result . stdout . startsWith ( '[command]' ) ) {
277+ result . stdout
278+ // remove [command]/path/to/executable from output
279+ . slice ( result . stdout . indexOf ( ' ' ) + 1 )
280+ // remove arguments from output
281+ . replace ( args . join ( ' ' ) , '' )
282+ . trim ( )
283+ }
279284 return result
280285}
281286
You can’t perform that action at this time.
0 commit comments