* git credentials store: removed line when token expired
@ 2024-12-09 16:03 Sergey Ivanov
2024-12-10 2:46 ` brian m. carlson
0 siblings, 1 reply; 2+ messages in thread
From: Sergey Ivanov @ 2024-12-09 16:03 UTC (permalink / raw)
To: git
[-- Attachment #1.1: Type: text/plain, Size: 46 bytes --]
see attached
--
Kind regards,
Sergey Ivanov
[-- Attachment #1.2: Type: text/html, Size: 219 bytes --]
[-- Attachment #2: git-bugreport-2024-12-09-1755.txt --]
[-- Type: text/plain, Size: 1230 bytes --]
Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.
What did you do before the bug happened? (Steps to reproduce your issue)
1) My remote token to git repo was expired
2) I have git config --global credential.helper
store
and had line with given url added here
What did you expect to happen? (Expected behavior)
Git will say that token is not working
and will NOT touch credentials file.
What happened instead? (Actual behavior)
Git removes whole urk from git-credentials
and says 'not token'
What's different between what you expected and what actually happened?
I want manually change token only, noe whole URK format of which i
constantly forgetting
Anything else you want to add:
Please review the rest of the bug report below.
You can delete any lines you don't wish to share.
[System Info]
git version:
git version 2.34.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
compiler info: gnuc: 11.4
libc info: glibc: 2.35
$SHELL (typically, interactive shell): /bin/bash
[Enabled Hooks]
pre-auto-gc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git credentials store: removed line when token expired
2024-12-09 16:03 git credentials store: removed line when token expired Sergey Ivanov
@ 2024-12-10 2:46 ` brian m. carlson
0 siblings, 0 replies; 2+ messages in thread
From: brian m. carlson @ 2024-12-10 2:46 UTC (permalink / raw)
To: Sergey Ivanov; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 1999 bytes --]
On 2024-12-09 at 16:03:49, Sergey Ivanov wrote:
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? (Steps to reproduce your issue)
> 1) My remote token to git repo was expired
> 2) I have git config --global credential.helper
> store
> and had line with given url added here
> What did you expect to happen? (Expected behavior)
> Git will say that token is not working
> and will NOT touch credentials file.
When a credential is not valid, Git invokes the helper with the `erase`
argument to delete the bad credential. That's documented in
git-credential(1) and gitcredentials(7).
If Git didn't do that, then when it needed to prompt for a new
credential, it would get exactly the same credential before, and it
wouldn't work. Because most credential helpers store data in opaque
stores (like the system password manager), it would be nearly impossible
for the average user to understand how to clear the credential if Git
didn't do it itself.
> What happened instead? (Actual behavior)
> Git removes whole urk from git-credentials
> and says 'not token'
This file is entirely managed by the credential helper. I know it seems
like a plain text file you can edit by hand, and you can, but it's an
implementation detail that the data is stored that way. It's not
designed as a general-purpose URL store or user-owned config file that
the credential helper will never edit.
> What's different between what you expected and what actually happened?
> I want manually change token only, noe whole URK format of which i
> constantly forgetting
I'm very sorry that this didn't end up working out how you expected. I
think your URL may be available via `git remote -v` in your repository,
which hopefully should let you recover the URL if it was associated with
a remote.
--
brian m. carlson (they/them or he/him)
Toronto, Ontario, CA
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-10 2:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-09 16:03 git credentials store: removed line when token expired Sergey Ivanov
2024-12-10 2:46 ` brian m. carlson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox