[SCM] swh-lv2/master: Append --no-color to git log.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Tue May 17 09:12:04 UTC 2011


The following commit has been merged in the master branch:
commit fc86e80f4a4e9563d4eaaf77e9e8a049d5558d8d
Author: Alessio Treglia <alessio at debian.org>
Date:   Tue May 17 11:11:20 2011 +0200

    Append --no-color to git log.

diff --git a/debian/get-git-source.sh b/debian/get-git-source.sh
index e1a3e2e..47be60b 100755
--- a/debian/get-git-source.sh
+++ b/debian/get-git-source.sh
@@ -3,8 +3,8 @@
 BASE_REL=$(dpkg-parsechangelog 2>/dev/null | sed -ne 's/Version: \([0-9.]\+\)+.*/\1/p')
 OLDDIR=${PWD}
 GOS_DIR=${OLDDIR}/get-orig-source
-GIT_COMMIT='git log -1 --oneline | cut -d" " -f1'
-GIT_DATE='git log -1 --date=iso | sed -ne "s/Date:\s\+\(.*\).*/\1/p" | cut -d" " -f1 | tr -d "-"'
+GIT_COMMIT='git log --no-color -1 --oneline | cut -d" " -f1'
+GIT_DATE='git log --no-color -1 --date=iso | sed -ne "s/Date:\s\+\(.*\).*/\1/p" | cut -d" " -f1 | tr -d "-"'
 
 if [ -z ${BASE_REL} ]; then
 	echo 'Please run this script from the sources root directory.'

-- 
swh-lv2 packaging



More information about the pkg-multimedia-commits mailing list