Commit 07659b1
committed
Revert "osxkeychain: state to skip unnecessary store operations"
This reverts commit e1ab45b.
That commit was trying to skip to store a credential returned by
"git-credential-osxkeychain get" by setting
"state[]=osxkeychain:seen=1". However, this state[] is kept even if a
credential returned by "git-credential-osxkeychain get" is invalid and
another subsequent helper's "get" returns a valid credential. Another
subsequent helper (such as [1]) may expect git-credential-osxkeychain to
store the valid credential so that "store" cannot be skipped by just
checking "state[]=osxkeychain:seen=1".
In order to solve this issue, the state[] mechanism can be refined or
"osxkeychain:seen" can encode the whole information of the last
"get". For now, let's revert the change.
[1]: https://github.com/hickford/git-credential-oauth
Reported-by: Petter Sælen <petter@saelen.eu>
Signed-off-by: Koji Nakamaru <koji.nakamaru@gree.net>1 parent 4badef0 commit 07659b1
1 file changed
Lines changed: 0 additions & 11 deletions
Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 174 | | |
179 | 175 | | |
180 | 176 | | |
| |||
288 | 284 | | |
289 | 285 | | |
290 | 286 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | 287 | | |
295 | 288 | | |
296 | 289 | | |
| |||
402 | 395 | | |
403 | 396 | | |
404 | 397 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | 398 | | |
410 | 399 | | |
411 | 400 | | |
| |||
0 commit comments