Skip to content

Commit d61be23

Browse files
committed
timey wimey
1 parent 5645df8 commit d61be23

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/sync-ga-to-rc/bash-helpers/get-cutoff.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ cd "${repoRoot}"
2828
git fetch origin
2929

3030
dateString=$(
31-
git reflog \
31+
git log \
32+
--pretty=format:%ad \
3233
--date=iso \
33-
origin/${targetBranch} \
34-
| tail -1
34+
main..${targetBranch} | \
35+
tail -1
3536
)
3637

37-
snip1="${dateString%%\}*}"
38-
rawDate="${snip1#*{}"
39-
branchDate="$(getUTCDate "${rawDate}")"
38+
branchDate="$(getUTCDate "${dateString}")"
4039

4140
echo "${branchDate}"

0 commit comments

Comments
 (0)