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

[WIP] Sync module to push/pull changes from remote repo #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gazpachoking
Copy link
Collaborator

This is the start of a sync module, which can push and pull changes from a remote repo. This would allow e.g. keeping a github mirror up to date with realms changes, and/or automatically pulling changes from a remote (like if you merge a PR from github.)

I haven't actually tested anything yet, just posting PR now for discussion/status updates.

Things to do:

  • verify it doesn't work yet
  • make it work
  • allow setting the branch of the remote repo
  • validate the github hook payload is actually about the repo/branch we care about
  • Support webhooks from other services?
  • It looks like Gittle.pull ignores the branch_name arg and only does a fetch. Investigate dulwich.porcelain
  • What to do if there are conflicts when pushing/pulling?

@dereks
Copy link
Contributor

dereks commented Jan 3, 2017

This remote sync feature would be very useful, in my opinion.

One problem is that the Realms Users/Passwords are not stored in git. They are stored in a separate SQLite database (by default).

As a related and concurrent feature, I would like to see users stored in a simple htpasswd or /etc/passwd format, with one user per line and entries like

user:password_sha1

Then this text file could also be stored in git. I may be adding this feature for my purposes, but have no schedule yet...

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

Successfully merging this pull request may close these issues.

2 participants