[clang] c3fa4b7 - [clang-format] Fix a bug in git-clang-format.bat (#75268)

via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 14:00:10 PST 2023


Author: Owen Pan
Date: 2023-12-13T14:00:06-08:00
New Revision: c3fa4b788f4427c483a08eeb8ccec2cb1ed83d32

URL: https://github.com/llvm/llvm-project/commit/c3fa4b788f4427c483a08eeb8ccec2cb1ed83d32
DIFF: https://github.com/llvm/llvm-project/commit/c3fa4b788f4427c483a08eeb8ccec2cb1ed83d32.diff

LOG: [clang-format] Fix a bug in git-clang-format.bat (#75268)

Pass the fully-qualified path name (less the file extension) of
git-clang-format.bat to py so that it can be run from anywhere.

Fixes #75265.

Added: 
    

Modified: 
    clang/tools/clang-format/git-clang-format.bat

Removed: 
    


################################################################################
diff  --git a/clang/tools/clang-format/git-clang-format.bat b/clang/tools/clang-format/git-clang-format.bat
index d4bc5172989cb0..9965cd4312fe39 100644
--- a/clang/tools/clang-format/git-clang-format.bat
+++ b/clang/tools/clang-format/git-clang-format.bat
@@ -1 +1 @@
-py -3 git-clang-format %*
+py -3 %~pn0 %*


        


More information about the cfe-commits mailing list