Commit 6badfb3
committed
credential-store: avoid assertion
As of 1a9d15d (tempfile: a new module for handling temporary files,
2015-08-10), the temporary files which are used by the lock file
machinery adjust the permissions, and to do that, the config is read,
which in turn requires the config to be read.
This means that the runtime prefix needs to be resolved properly, but we
did not set that correctly in credential-store.
The symptom of this bug: when running
printf '%s\n%s\n%s\n%s\n' \
'protocol=https' 'host=gitblub.com' \
'username=hello' 'password=world' |
git credential-store store
an assertion is thrown:
Assertion failed!
Program: ...\libexec\git-core\git-credential-store.exe
File: exec_cmd.c, Line 23
Expression: argv0_path
This application has requested the Runtime to terminate it in an
unusual way. Please contact the application's support team for
more information.
This fixes #766
Signed-off-by: Johannes Schindelin <[email protected]>1 parent ebcf257 commit 6badfb3
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
0 commit comments