[oe-commits] Chris Larson : base.bbclass: use 'git log' & 'git branch', not git-log & git-branch.

GIT User account git at amethyst.openembedded.net
Mon Nov 3 20:52:52 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 3ff5572d2b2702b8dc925e04ebd2c21d2ae8e8ce
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3ff5572d2b2702b8dc925e04ebd2c21d2ae8e8ce

Author: Chris Larson <clarson at kergoth.com>
Date:   Mon Nov  3 12:29:26 2008 -0700

base.bbclass: use 'git log' & 'git branch', not git-log & git-branch.

---

 classes/base.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 93a76aa..10648e9 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -758,7 +758,7 @@ def base_get_metadata_svn_revision(d):
 
 def base_get_metadata_git_branch(d):
 	import os
-	branch = os.popen('cd %s; git-branch | grep "^* " | tr -d "* "' % base_get_scmbasepath(d)).read()
+	branch = os.popen('cd %s; git branch | grep "^* " | tr -d "* "' % base_get_scmbasepath(d)).read()
 
 	if len(branch) != 0:
 		return branch
@@ -766,7 +766,7 @@ def base_get_metadata_git_branch(d):
 
 def base_get_metadata_git_revision(d):
 	import os
-	rev = os.popen("cd %s; git-log -n 1 --pretty=oneline --" % base_get_scmbasepath(d)).read().split(" ")[0]
+	rev = os.popen("cd %s; git log -n 1 --pretty=oneline --" % base_get_scmbasepath(d)).read().split(" ")[0]
 	if len(rev) != 0:
 		return rev
 	return "<unknown>"





More information about the Openembedded-commits mailing list