Skip to content

Commit 4accea7

Browse files
committed
Broken pipe fix
1 parent cca75ca commit 4accea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check_license/check_headers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ while [ "$1" != "" ]; do
6868
done
6969

7070
if [ $CHECK_ALL -eq 0 ]; then
71-
CURRENT_COMMIT=$($GIT log --pretty=%H -1)
71+
CURRENT_COMMIT=$($GIT --no-pager log --pretty=%H -1)
7272
MERGE_BASE=$($GIT merge-base HEAD origin/master 2>/dev/null)
7373
[ -z $MERGE_BASE ] && \
74-
MERGE_BASE=$($GIT log --pretty="%cN:%H" | grep GitHub | head -n1 | cut -d: -f2)
74+
MERGE_BASE=$($GIT --no-pager log --pretty="%cN:%H" | grep GitHub | head -n1 | cut -d: -f2)
7575
[ -z $MERGE_BASE -o "$CURRENT_COMMIT" = "$MERGE_BASE" ] && \
7676
CHECK_ALL=1
7777
fi

0 commit comments

Comments
 (0)