We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c43f98a commit 8d7a53fCopy full SHA for 8d7a53f
1 file changed
check-branch.sh
@@ -4,7 +4,9 @@
4
# recording whether the build passes or fails for each.
5
6
commits=$@
7
-test "$commits" || commits=$(git rev-list HEAD ^master | tail -r)
+test "$commits" || commits=$(git rev-list HEAD ^master | sed '1!G;h;$!d')
8
+# NB: The sed line above reverses the order of the commits.
9
+# See: http://stackoverflow.com/a/744093
10
11
branch=$(git rev-parse --abbrev-ref HEAD)
12
0 commit comments