NeogitOrg / NeogitOrg/neogit

Doesn't respect git credential caching setting

Open
#1,027 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
5.6k
Forks
357
Avg merge
15h 47m
Merged PRs (30d)
2

Description

Is your feature request related to a problem? Please describe.
I have configured git to cache my credential for 2hrs like this in my .gitconfig:

[credential]
	helper = cache --timeout=3600

therefore I don't have to enter my password every moment for pushing
just quickly checked out the magit; it does save password just like git.

Describe the solution you'd like
respect git config credential config

Describe alternatives you've considered
there's none.

Additional context
not needed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Neogit's git push entry point and trace how it obtains credentials, using the .gitconfig [credential] helper example in the issue as the expected configuration. Compare that flow with Git's credential caching behavior and verify that repeated pushes do not request the password again when the configured cache timeout is active.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, lua, neovim
Domain
authentication, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.