Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Conversation

owenca
Copy link
Contributor

@owenca owenca commented Dec 13, 2023

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.

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 llvm#75265.
@llvmbot
Copy link
Member

llvmbot commented Dec 13, 2023

@llvm/pr-subscribers-clang-format

Author: Owen Pan (owenca)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/75268.diff

1 Files Affected:

  • (modified) clang/tools/clang-format/git-clang-format.bat (+1-1)
diff --git a/clang/tools/clang-format/git-clang-format.bat b/clang/tools/clang-format/git-clang-format.bat
index d4bc5172989cb..9965cd4312fe3 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 %*

@owenca owenca merged commit c3fa4b7 into llvm:main Dec 13, 2023
5 checks passed
@owenca owenca deleted the 75265 branch December 13, 2023 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running git-clang-format fails on Windows
3 participants