[Libvirt-cim] [PATCH] autoconfiscate.sh: Use proper command for revision count

Eduardo Lima (Etrunko) eblima at linux.vnet.ibm.com
Tue Jan 17 16:58:17 UTC 2012


From: "Eduardo Lima (Etrunko)" <eblima at br.ibm.com>

Signed-off-by: Eduardo Lima (Etrunko) <eblima at br.ibm.com>
---
 autoconfiscate.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/autoconfiscate.sh b/autoconfiscate.sh
index 8ea8a30..f0ef048 100755
--- a/autoconfiscate.sh
+++ b/autoconfiscate.sh
@@ -19,7 +19,7 @@ autoconf --force &&
 
 if test -x $(which git); then
     git rev-parse --short HEAD > .changeset
-    git log | grep "^commit" | wc -l > .revision
+    git rev-list --count HEAD > .revision
 else
     echo "Unknown" > .changeset
     echo "0" > .revision
-- 
1.7.7.5




More information about the Libvirt-cim mailing list