Skip to content

Commit

Permalink
πŸ› Get number of cherry picks bug (#33051)
Browse files Browse the repository at this point in the history
  • Loading branch information
estherkim committed Mar 3, 2021
1 parent 8ba9533 commit ea31d62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-system/common/git.js
Expand Up @@ -176,10 +176,11 @@ function gitCommitterEmail() {
* from <branch> are prefixed with '- ', and those that were not are prefixed
* with '+ '.
*
* @return {!Array<{sha: string, isCherryPick: boolean}>}
* @return {!Array<string>}
*/
function gitCherryMaster() {
return getStdout('git cherry master').trim().split('\n');
const stdout = getStdout('git cherry master').trim();
return stdout ? stdout.split('\n') : [];
}

/**
Expand Down

0 comments on commit ea31d62

Please sign in to comment.