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

Make consistent usage of repositoryPath in GitSync class and make the… #95

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

Hydraner
Copy link
Contributor

@Hydraner Hydraner commented May 2, 2018

… repository path configurable.

Background of this is, that by making the repository path of the sync directory configurable, you can define a path like: user/git-sync
This way, the content repo is outside the user root, which in many cases is part of a global git repo. Moving the pages directory (and any other directory defined in "folders" of git-sync) to this custom defined git-sync directory and adding symlinks to the user directory itself to keep Grav running seems a solid solution to this for me.

You will end up with smth. linke that:
/
/user/pages -> symlink to /user/git-sync/pages
/user
/user/git-sync
/user/git-sync/pages

But that only works by changing the repository path of git-sync.

Similar issues have been discussed in:
#54
#33
#25

@w00fz w00fz merged commit af25bce into trilbymedia:develop Aug 28, 2018
w00fz added a commit that referenced this pull request Sep 12, 2018
Fixes #4, fixes #21, fixes #25, fixes #27, fixes #33, fixes #34, fixes #54, fixes #56, fixes #57, fixes #58, fixes #63, fixes #71, fixes #77, fixes #79, fixes #81, fixes #83, fixes #90, fixes #94, fixes #95, fixes #101
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