<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - git-clang-format script fails reading the git config if there is an option without a value"
href="https://bugs.llvm.org/show_bug.cgi?id=46043">46043</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>git-clang-format script fails reading the git config if there is an option without a value
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Formatter
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>xerusx@pm.me
</td>
</tr>
<tr>
<th>CC</th>
<td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - git-clang-format script fails reading the git config if there is an option without a value"
href="https://bugs.llvm.org/show_bug.cgi?id=46043#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - git-clang-format script fails reading the git config if there is an option without a value"
href="https://bugs.llvm.org/show_bug.cgi?id=46043">bug 46043</a>
from <span class="vcard"><a class="email" href="mailto:Jake.Merdich@amd.com" title="Jake Merdich <Jake.Merdich@amd.com>"> <span class="fn">Jake Merdich</span></a>
</span></b>
<pre>*** <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - git-clang-format script fails reading the git config if there is an option without a value"
href="show_bug.cgi?id=46044">Bug 46044</a> has been marked as a duplicate of this bug. ***</pre>
</div>
<div>
<pre>The git-clang-format python script fails reading the git config if there is an
option without a value, which according to
<a href="https://git-scm.com/docs/git-config#_syntax">https://git-scm.com/docs/git-config#_syntax</a> is an acceptable format:
"[Set variables] in the form name = value (or just name, which is a short-hand
to say that the variable is the boolean "true")"
The error:
```
❯ git clang-format
Traceback (most recent call last):
File "/usr/bin/git-clang-format", line 579, in <module>
main()
File "/usr/bin/git-clang-format", line 61, in main
config = load_git_config()
File "/usr/bin/git-clang-format", line 194, in load_git_config
name, value = entry.split('\n', 1)
ValueError: need more than 1 value to unpack
```
I currently use clang-format-9 on KDE Neon (based on Ubuntu 18 LTS)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>