Skip to content

Commit

Permalink
Pass --no-pager to git log command.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dbaron authored and sideshowbarker committed Oct 27, 2023
1 parent 9677c21 commit 7fc3543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function checkHTMLBuildIsUpToDate {
echo -n "Your local branch is $new_commits "
[[ $new_commits == "1" ]] && echo -n "commit" || echo -n "commits"
echo " behind $origin_url:"
git log --oneline HEAD..FETCH_HEAD
git log --no-pager --oneline HEAD..FETCH_HEAD
echo
echo "To update, run this command:"
echo
Expand Down

0 comments on commit 7fc3543

Please sign in to comment.