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

setup creates new branch in existing store #2815

Open
leogott opened this issue Mar 5, 2024 · 0 comments
Open

setup creates new branch in existing store #2815

leogott opened this issue Mar 5, 2024 · 0 comments

Comments

@leogott
Copy link

leogott commented Mar 5, 2024

Summary

When I installed gopass on a new system, I tried to follow proper procedure for once, and wanted to set it up with a new dedicated gpg key. The setup script unexpectedly created a new empty master branch in my pw-store repository, and pushed the public key there.
This probably happened, because the OS-included version of git inits new repositories with a master-branch, and I hadn't yet configured git config --global init.defaultBranch main, (but I didn't verify whether the issue would occur, had I done that beforehand).

Managed to fix it, but some trial and error was involved.

I forgot to report this bug on the day… I hope my missive is accurate enough.

Steps To Reproduce

  1. have an existing pw-store git-repo with a single (default-)branch that is not named master or what your git init.defaultBranch is set to
  2. run gopass setup with this repo
  3. ???
  4. profit

Expected behavior

gopass setup should clone the existing branch (and/or ask which branch to use and whether to create a new empty branch)

Environment

  • OS: Pop!OS (based on ubuntu)
  • OS version: 22.04 LTS
  • gopass Version: v1.15.11, I think
  • Installation method: github release

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants