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

config: git operations do not work using ~ in mounts.path #2916

Closed
ghost opened this issue Jul 30, 2024 · 0 comments · Fixed by #2961
Closed

config: git operations do not work using ~ in mounts.path #2916

ghost opened this issue Jul 30, 2024 · 0 comments · Fixed by #2961

Comments

@ghost
Copy link

ghost commented Jul 30, 2024

Summary

All git operations (gopass git ...) give this error: chdir ~/.password-store: no such file or directory.
All other commands work.

Steps To Reproduce

The path in config file uses ~ in place of my home folder:

[mounts]
	path = ~/.password-store

Git operations work if I use the absolute location of the root store (/home/user/.password-store) for the path

Environment

  • OS: Ubuntu 24.04
  • gopass Version: 1.15.13
  • Installation method: apt repository
AnomalRoil pushed a commit that referenced this issue Oct 7, 2024
…2961)

Replace `~` with user home directory if `$GOPASS_HOMEDIR` is not set, does not replace `~` if neither are set.

Fixes #2916

Signed-off-by: Callum Andrew <contact@candrew.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants