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

gopass fsck overwrites sshCommand in .git/config #2994

Closed
pflorczyk opened this issue Nov 14, 2024 · 0 comments · Fixed by #3036
Closed

gopass fsck overwrites sshCommand in .git/config #2994

pflorczyk opened this issue Nov 14, 2024 · 0 comments · Fixed by #3036
Assignees
Labels
bug Defects

Comments

@pflorczyk
Copy link

Summary

I have multiple mounts with git repositories hosted on one server. Each with separate ssh key. I'm forced to manually set sshCommand.
gopass fsck overwrites sshCommand in .git/config so I'm unable to pass ssh key.

Steps To Reproduce

Add "sshCommand = ssh -i ~/.ssh/gopass-X" to .git/config
Run:
gopass fsck

After that sshCommand is replaced with ssh -oControlMaster=auto -oControlPersist=600 -oControlPath=/tmp/.ssh-%C

Expected behavior

Don't overwrite sshCommand in .git/config or add option to disable this behaviour.

@dominikschulz dominikschulz self-assigned this Nov 15, 2024
@dominikschulz dominikschulz added the bug Defects label Nov 15, 2024
dominikschulz added a commit to dominikschulz/gopass that referenced this issue Jan 12, 2025
To avoid messing with user settings.

Fixes gopasspw#2994

Signed-off-by: Dominik Schulz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defects
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants