Skip to content

Commit 2a3f119

Browse files
authored
[clang-format] Fix a bug in git-clang-format --binary (#74176)
Fixed #74165.
1 parent 5db1c6e commit 2a3f119

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/tools/clang-format/git-clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def main():
153153
else:
154154
if len(commits) > 2:
155155
die('at most two commits allowed; %d given' % len(commits))
156+
opts.binary=os.path.abspath(opts.binary)
156157
changed_lines = compute_diff_and_extract_lines(commits, files, opts.staged)
157158
if opts.verbose >= 1:
158159
ignored_files = set(changed_lines)

0 commit comments

Comments
 (0)