We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent3dbbd46 commitff789c4Copy full SHA for ff789c4
src/utils/exec.ts
@@ -22,14 +22,18 @@ export function createCherryPick(cwd: string) {
22
returnasyncfunctioncherryPick(commits:string[]):Promise<void>{
23
for(constcommitofcommits){
24
try{
25
-const{ stdout}=awaitcreateExec(cwd)(
+const{ stdout, stderr}=awaitcreateExec(cwd)(
26
`git cherry-pick -X theirs${commit}`
27
);
28
+if(stderr){
29
+console.warn(stderr);
30
+}
31
if(!stdout){
32
console.warn(`No cherry-pick output for${commit}`);
33
}
34
}catch(e){
35
console.warn(`Cherry-pick failed for${commit}`);
36
+console.error(e.message);
37
38
39
};
@@ -50,6 +54,7 @@ export function createCommandRunner(cwd: string) {
50
54
51
55
const{ stdout, stderr}=awaitcreateExec(cwdDir)(command);
52
56
57
+console.log(stdout);
53
58
console.warn(stderr);
59
60
console.error(`Command failed: "${command}"`);