trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject [trafficserver] 02/02: Make clang-format work on out of tree builds.
Date Sat, 07 May 2016 16:07:41 GMT
This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit cac8bed563cbfdc835efebb8ade1b6e157edbb3a
Author: James Peach <jpeach@apache.org>
AuthorDate: Sat May 7 09:02:59 2016 -0700

    Make clang-format work on out of tree builds.
---
 tools/clang-format.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/clang-format.sh b/tools/clang-format.sh
index f9b9544..9a5475b 100755
--- a/tools/clang-format.sh
+++ b/tools/clang-format.sh
@@ -21,7 +21,7 @@
 set -e # exit on error
 
 DIR=${1:-.}
-ROOT=${ROOT:-$(git rev-parse --show-toplevel)/.git/fmt}
+ROOT=${ROOT:-$(cd $(dirname $0) && git rev-parse --show-toplevel)/.git/fmt}
 PACKAGE="clang-format-20160415.tar.bz2"
 VERSION="clang-format version 3.9.0 (trunk 265913)"
 

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>.

Mime
View raw message