git-clang-format requires python2.7, but the current shebang uses
whatever is the system default, making it fail on python3 systems.

This was originally reported here:
https://bugs.gentoo.org/show_bug.cgi?id=562688

-- 
-Austin
GPG: 14FB D7EA A041 937B
From 67b271552f228bb6f92518ff13c6f89639d0a920 Mon Sep 17 00:00:00 2001
From: Austin English <austinengl...@gmail.org>
Date: Sun, 26 Jun 2016 20:30:28 -0500
Subject: [PATCH 1/1] tools/clang-format: fix git-clang-format shebang

Signed-off-by: Austin English <austinengl...@gmail.org>
---
 tools/clang-format/git-clang-format | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/clang-format/git-clang-format b/tools/clang-format/git-clang-format
index 0c45762..3cd8ab7 100755
--- a/tools/clang-format/git-clang-format
+++ b/tools/clang-format/git-clang-format
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.7
 #
 #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
 #
-- 
2.7.3

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to