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

Do not create commits during setup with specified remote #2901

Open
apprehensions opened this issue Jun 22, 2024 · 0 comments
Open

Do not create commits during setup with specified remote #2901

apprehensions opened this issue Jun 22, 2024 · 0 comments

Comments

@apprehensions
Copy link

Summary

When running gopass setup and supplying a remote, gopass by itself makes two commits, which makes the upstream remote's history conflict with the ones gopass made.

Steps To Reproduce

  1. gopass setup with a remote WITH history
  2. Observe as gopass fails to setup
❓ Do you want to add a git remote? [y/N/q]: y
Configuring the git remote ...
Please enter the git remote for your shared store [[REDACTED]]: 
2024/06/22 17:14:35 failed to setup git remote: failed to push to git remote: exit status 1: To [REDACTED]
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to [REDACTED]
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. If you want to integrate the remote changes,
hint: use 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Expected behavior

gopass doesn't make conflicting history.

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

No branches or pull requests

1 participant