git.eclass: Pipe trough cat instead of setting PAGER=cat
authorFernando J. Pereda <ferdy@gentoo.org>
Sat, 30 Dec 2006 18:21:02 +0000 (18:21 +0000)
committerFernando J. Pereda <ferdy@gentoo.org>
Sat, 30 Dec 2006 18:21:02 +0000 (18:21 +0000)
eclass/git.eclass

index 4d1fabd36934cee1c35ebceaec3333ea59c4e139..6d706e2090f27b5a45e6c4d77dab3c0c36a03ec6 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.2 2006/12/30 17:17:05 ferdy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.3 2006/12/30 18:21:02 ferdy Exp $
 
 ## --------------------------------------------------------------------------- #
 # subversion.eclass author: Akinori Hattori <hattya@gentoo.org>
@@ -47,7 +47,7 @@ EGIT_UPDATE_CMD="git fetch -f -u"
 
 ## -- EGIT_DIFFSTAT_CMD: Command to get diffstat output
 #
-EGIT_DIFFSTAT_CMD="PAGER=cat git diff --stat"
+EGIT_DIFFSTAT_CMD="git diff --stat"
 
 
 ## -- EGIT_OPTIONS:
@@ -204,7 +204,8 @@ git_fetch() {
                ${EGIT_UPDATE_CMD} ${EGIT_OPTIONS} origin ${EGIT_BRANCH}:${EGIT_BRANCH} \
                        || die "${EGIT}: can't update from ${EGIT_REPO_URI}."
 
-               ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH}
+               # piping through cat is needed to avoid a stupid Git feature
+               ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH} | cat
        fi
 
        einfo "   local clone: ${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}"