Skip to content

Commit 2bd42f9

Browse files
committed
Apply suggestions from code review
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com> Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
1 parent 15da8dc commit 2bd42f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/init-lts-line

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ baseline=$1
1212
# Make tagged commit part of the release branch
1313
branch_name="stable-${baseline}"
1414
# Use first child of release commit as branch point (`[maven-release-plugin] prepare for next development iteration`)
15-
baseline_commit="$(git log --reverse --ancestry-path --pretty=%H jenkins-${baseline}..master | head -1)"
15+
baseline_commit="$(git log --reverse --ancestry-path --pretty=%H jenkins-${baseline}..master | sed -n '1p')"
1616
baseline_release_date="$(git show -s --format=%ct "${baseline_commit}")"
1717
git checkout -b $branch_name "${baseline_commit}"
1818

0 commit comments

Comments
 (0)