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 17:15:35 UTC
[2/4] incubator-trafficcontrol git commit: if not in git tree,
no tarball
if not in git tree, no tarball
(cherry picked from commit 5911d404d46a78926626d0f781caff926f7b6ce9)
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/2c60b19a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/2c60b19a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/2c60b19a
Branch: refs/heads/1.8.x
Commit: 2c60b19a8bf08c0f4cb71b70a3060b4162325c93
Parents: 735d34d
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 10:12:18 2016 -0700
----------------------------------------------------------------------
build/functions.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/2c60b19a/build/functions.sh
----------------------------------------------------------------------
diff --git a/build/functions.sh b/build/functions.sh
index c9dba30..ef0c222 100755
--- a/build/functions.sh
+++ b/build/functions.sh
@@ -57,7 +57,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