Skip to content

Commit 2a2b3b3

Browse files
maribethbcpcallen
andauthored
chore: change the way we look for upstream remote (#7230)
* chore: change the way we look for upstream remote * chore: use js instead of shell thanks christopher Co-authored-by: Christopher Allen <cpcallen+github@gmail.com> * chore: store the found upstream name --------- Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>
1 parent 2ac13b5 commit 2a2b3b3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/gulpfiles/git_tasks.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ let upstream = null;
3636
function getUpstream() {
3737
if (upstream) return upstream;
3838
for (const line of String(execSync('git remote -v')).split('\n')) {
39-
const [remote, url] = line.split('\t');
40-
if (url.includes('github.com/google/blockly')) {
41-
upstream = remote;
39+
if (line.includes('google/blockly')) {
40+
upstream = line.split('\t')[0];
4241
return upstream;
4342
}
4443
}

0 commit comments

Comments
 (0)