[question] push/pull without git-bug

Timeline

Andreas Hrubak (bAndie91) opened

Is is possible to push and pull to and from a remote without git-bug?

git-bug uses go-git which does not handle ssh remotes the same way as everything else on the machine which does ssh (basically openssh).

I tried to push and fetch refs/bugs/* and refs/identities/* just normally with git push REMOTE … and git config --add remote.REMOTE.fetch refs/bugs/*:refs/bugs/*; git pull, but git-bug does not pick them up.

Andreas Hrubak (bAndie91) commented

ok, i figured it out. it works, so you only need to push refs/bugs/* (and refs/identities/*) and fetch the same on the other side. it's only git-bug's cache which does not pick it up. so i guess it's safe to rm -r .git/git-bug/cache then git bug bug shows the updated list correctly.

maybe worth to make a subcommand to rebuilt the cache? eg. git bug cache refresh or something˙

thanks for the nice project!