Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: git-credential-oauth opens browser tab on each git push #6726

Open
2 tasks done
ThomasMader opened this issue Mar 29, 2025 · 0 comments
Open
2 tasks done

bug: git-credential-oauth opens browser tab on each git push #6726

ThomasMader opened this issue Mar 29, 2025 · 0 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@ThomasMader
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

I enabled git-credential-oauth with:

programs.git-credential-oauth.enable = true;

It works but everytime I push a new browser tab opens. To my understanding this is because there is no caching enabled. I was able to fix it by writing my own git config instead of using the one generated by Home Manager.
I only added the cache helper line:

[credential]
        helper = "cache --timeout 21600"
        helper = "/nix/store/vf3qr6z3n7446hkqkq5gcvsz90hcijx4-git-credential-oauth-0.13.3/bin/git-credential-oauth"

Maybe I missed an option on how to solve that properly but I think it would be better if that works out of the box.

Maintainer CC

@tomodachi94

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.6.82, NixOS, 24.11 (Vicuna), 24.11.20250313.cdd2ef0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.12`
 - nixpkgs: `/nix/store/vawkv67jxh8kl4flrqgpcsmn9inqgvjv-source`
@ThomasMader ThomasMader added bug triage Issues or feature request that have not been triaged yet labels Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants