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 23:01:54 UTC

[2/2] incubator-trafficcontrol git commit: if not in git tree, no tarball

if not in git tree, no tarball


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

Branch: refs/heads/psql-rebase
Commit: e810bf1e584f313f32db4c4e3f42f60bedc14a0d
Parents: 0cfb4ec
Author: Dan Kirkwood <da...@gmail.com>
Authored: Fri Nov 11 18:41:11 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 28 16:01:22 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/e810bf1e/build/functions.sh
----------------------------------------------------------------------
diff --git a/build/functions.sh b/build/functions.sh
index 6fa861f..c237288 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=$(git rev-list HEAD 2>/dev/null | wc -l)
+		local commits=$(getRevCount)
 		local sha=$(git rev-parse --short=8 HEAD)
 		echo "$commits.$sha"
 	else