You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2016/11/28 20:02:58 UTC

[3/3] incubator-trafficcontrol git commit: revcount and commit from buildno

revcount and commit from buildno

(cherry picked from commit 646b7e9bcd017c940471fb198b32451872d4edc2)


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/c2c1f718
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/c2c1f718
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/c2c1f718

Branch: refs/heads/1.8.x
Commit: c2c1f718b3cf94c05093d58ca52796be5954c771
Parents: 7fa7baf
Author: Dan Kirkwood <da...@gmail.com>
Authored: Sat Nov 12 19:00:25 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 28 13:00:14 2016 -0700

----------------------------------------------------------------------
 build/functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/c2c1f718/build/functions.sh
----------------------------------------------------------------------
diff --git a/build/functions.sh b/build/functions.sh
index 7df42f5..cd17330 100755
--- a/build/functions.sh
+++ b/build/functions.sh
@@ -58,7 +58,7 @@ function isInGitTree() {
 function getBuildNumber() {
 	local in_git=$()
 	if isInGitTree; then
-		local commits=$(getRevCount)
+		local commits=$(git rev-list HEAD 2>/dev/null | wc -l)
 		local sha=$(git rev-parse --short=8 HEAD)
 		echo "$commits.$sha"
 	else