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

sync to other drive gitfs pull and push ... Skipped (no remote) #2588

Closed
shemeshg opened this issue May 6, 2023 · 0 comments
Closed

sync to other drive gitfs pull and push ... Skipped (no remote) #2588

shemeshg opened this issue May 6, 2023 · 0 comments

Comments

@shemeshg
Copy link

shemeshg commented May 6, 2023

Summary

Sync to other drive will always fail because of #691, because the remote branch is always different

See my .git/config

macos@macoss-Mac-mini .git % cat config
[core]
	sshCommand = ssh -oControlMaster=auto -oControlPersist=600 -oControlPath=/tmp/.ssh-%C
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
	ignorecase = true
	precomposeunicode = true
[remote "backup_drive"]
	url = /Volumes/TEMP/password-store
	fetch = +refs/heads/*:refs/remotes/backup_drive/*
[diff "gpg"]
	binary = true
	textconv = gpg --no-tty --decrypt
[branch "master"]
	remote = /Volumes/TEMP/password-store
	merge = refs/heads/master
[push]
	default = matching
[pull]
	rebase = false
macos@macoss-Mac-mini .git %

Where simple git push will always work with no problem

Steps To Reproduce

macos@macoss-Mac-mini password-store % gopass sync -s FAST
🚥 Syncing with all remotes ...
[FAST]
   gitfs pull and push ... Skipped (no remote)
✅ All done
macos@macoss-Mac-mini password-store % git remote
backup_drive
macos@macoss-Mac-mini password-store % git status
On branch master

Expected behavior

I expect to simply git push

Environment

  • OS: Mac OS X Moterey
  • OS version: [uname -a]
Darwin macoss-Mac-mini.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Mar  9 20:08:59 PST 2023; root:xnu-8020.240.18.700.8~1/RELEASE_X86_64 x86_64
  • gopass Version:
macos@macoss-Mac-mini .git % gopass version
gopass 1.15.5 go1.20.3 darwin amd64
macos@macoss-Mac-mini .git %
  • Installation method
    brew

Additional context

Additional context #691

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