Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit f2e0391

Browse files
committed
scripts: Prevent git log from being opened in less
`git log`, when started from an interactive terminal, invokes the default pager. This tends to hold up the build process. I don't think this is intentional so pass the `--no-pager` flag. This doesn't affect non-interactive builds.
1 parent 9c66227 commit f2e0391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/_common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function git_clone {
6161
git -C $dir_name checkout $git_commit
6262
[[ ! -z "$update_submodules" ]] && git -C $dir_name submodule init
6363
[[ ! -z "$update_submodules" ]] && git -C $dir_name submodule update
64-
git -C $dir_name log -1
64+
git -C $dir_name --no-pager log -1
6565

6666
# -- Copy the upstream sources into the build directory
6767
rsync -a $dir_name $BUILD_DIR --exclude .git

0 commit comments

Comments
 (0)