You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2016/05/07 16:07:41 UTC

[trafficserver] 02/02: Make clang-format work on out of tree builds.

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 <jp...@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" <co...@trafficserver.apache.org>.