-
Notifications
You must be signed in to change notification settings - Fork 60
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
git-sync doesn't work with multisites #173
Comments
Any idea how to fix this? |
@w00fz Do you know the answer? |
I got it to work by moving/copying the cp -r /path/to/grav/user/.git/ /path/to/grav/user/sites/sub.domain.org/
cp /path/to/grav/user/.gitignore /path/to/grav/user/sites/sub.domain.org/.gitignore Additionally you have to set the local_repository option in
|
The better way is, to edit the The wizard will then use the correct path to create the repository. You could create an empty |
I am afraid I don't really have suggestions for multi-sites. I never had the need for using it as i just find it quicker to spin off a new Grav site. If anyone has suggestions or would like to help making GitSync multi-site compatible, PR are more than welcome! |
Hey @frunika, regarding the unrelated histories, I finally got to the bottom of this issue and it appears a regression was introduced where the method returning the git version would always return Because the version check is necessary to ensure certain git features get enabled (like I have now fixed this and @paulhibbitts kindly helped testing this confirming it's fine. A new release v2.1.1 is out and you shouldn't be needing manually running the command from terminal anymore, as long as your git version is > 2.9.0 (which is fairly old now). Give it a try! |
Hi @w00fz, thank's for the update. I'll give it a try later. It seems it fixes the git problem, also described in #168 . But it has nothing to do with the multisite support, does it? I think the issue should be reopend. We may need an update in the GUI (blueprint?) of the plugin, where one could enter a specific folder (or just the subsite). |
#33 was closed but still an issue
I made a fresh install of grav v1.6.26 for grav.domain.org.
Setup a setup.php for subdomains, added a grav-admin skeleton in a /user/sites/sub.domain.org/
Used the sub.domain.org/admin Adminpanel to install git-sync v2.1.0 and used the wizard.
Got the "FETCH_HEAD fatal: refusing to merge unrelated histories" problem and solved it using
git pull origin master --allow-unrelated-histories
.The wizard made a .git dir in
user/
and not inuser/sites/sub.domain.org/
and therefore git-sync syncs the main site grav.domain.orguser/pages/
and notuser/sites/sub.domain.org/pages
Is there a workaround? I cannot the anything in the referenced PR in #95
The text was updated successfully, but these errors were encountered: