We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c859f66 commit 7e775c1Copy full SHA for 7e775c1
1 file changed
src/app/SyncGithub.tsx
@@ -75,12 +75,15 @@ async function run() {
75
76
const git_push_target_list: Array<string> = [];
77
78
- for (const group of push_group_list) {
+ for (let i = 0; i < push_group_list.length; i++) {
79
+ const group = push_group_list[i];
80
const last_commit = last(group.commits);
81
invariant(last_commit, "last_commit must exist");
82
83
// push group in isolation if master_base is set
- if (group.master_base) {
84
+ // for the first group (i > 0) we can skip this
85
+ // since it'll be based off master anyway
86
+ if (group.master_base && i > 0) {
87
await push_master_group(group);
88
continue;
89
}
0 commit comments