You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not create commits during setup with specified remote #2901
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
gopass setup with a remote WITH history
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.
Activity
dominikschulz commentedon Sep 20, 2025
Yes, when we add a remote we should first try to clone the remote before me make any commits.
fix(setup): suppress auto-commit in gitfs when setup remote is specif…
Bump version to 2.0.0