File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ fetch_remote() {
29
29
30
30
new_candidate_branch () {
31
31
echo " Creating a sync branch if it doesn't already exist"
32
- git checkout -b " $SYNC_BRANCH_NAME " upstream/ master 2> /dev/null || git checkout " $SYNC_BRANCH_NAME "
32
+ git checkout -b " $SYNC_BRANCH_NAME " master 2> /dev/null || git checkout " $SYNC_BRANCH_NAME "
33
33
}
34
34
35
35
candidates () {
@@ -50,13 +50,13 @@ pop() {
50
50
}
51
51
52
52
check_local_branch_commit_diff () {
53
- commits_ahead=$( git rev-list upstream/ master..HEAD | wc -l)
53
+ commits_ahead=$( git rev-list master..HEAD | wc -l)
54
54
55
55
if [[ " $commits_ahead " -gt 1 ]]; then
56
56
# TODO: automatically open a new pull request here.
57
- echo " The local sync branch is $commits_ahead commits ahead of the upstream/ master branch"
57
+ echo " The local sync branch is $commits_ahead commits ahead of the master branch"
58
58
else
59
- echo " No sync PR is needed as the upstream/ master branch is up-to-date"
59
+ echo " No sync PR is needed as the master branch is up-to-date"
60
60
fi
61
61
}
62
62
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ cherrypick_set="${remote}.cherrypick"
49
49
: > " ${cherrypick_set} " # clear existing file
50
50
for rc in " ${remote_commits[@]} " ; do
51
51
if [[ -z $( git log -n 1 --no-merges --grep " ${rc} " HEAD) && -z $( grep " ${rc} " " ${remote} .blacklist" ) ]]; then
52
- git show -s --format=" %cI ${remote} %H" " ${rc} " >> " ${cherrypick_set} "
52
+
53
+ git show -s --format=" %cI $( printf " %03d" ${picked} ) ${remote} %H" " ${rc} " >> " ${cherrypick_set} "
53
54
(( ++ picked ))
54
55
fi
55
56
done
Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ function pop() {
57
57
exit
58
58
fi
59
59
readarray -t rcs < <( echo " $rc " | tr " " " \n" )
60
- remote=" ${rcs[1 ]} "
60
+ remote=" ${rcs[2 ]} "
61
61
subtree_dir=" staging/${remote} "
62
- rc=" ${rcs[2 ]} "
62
+ rc=" ${rcs[3 ]} "
63
63
printf ' popping: %s\n' " ${rc} "
64
64
65
65
# Cherrypick the commit
You can’t perform that action at this time.
0 commit comments