Skip to content

Commit 7fc3543

Browse files
dbaronsideshowbarker
authored andcommitted
Pass --no-pager to git log command.
Without --no-pager, this command can (depending on the user's pager settings) cause build.sh to show just a full screen git log in the user's pager (for example, if PAGER="less -Cemf"). This behavior is unexpected, and it seems like the intended behavior here is to have the git log appear as a continuous part of the output.
1 parent 9677c21 commit 7fc3543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function checkHTMLBuildIsUpToDate {
229229
echo -n "Your local branch is $new_commits "
230230
[[ $new_commits == "1" ]] && echo -n "commit" || echo -n "commits"
231231
echo " behind $origin_url:"
232-
git log --oneline HEAD..FETCH_HEAD
232+
git log --no-pager --oneline HEAD..FETCH_HEAD
233233
echo
234234
echo "To update, run this command:"
235235
echo

0 commit comments

Comments
 (0)