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

Backup and restore .git directory during middleman builds #32

Merged
merged 1 commit into from
Feb 16, 2016

Conversation

rmm5t
Copy link
Member

@rmm5t rmm5t commented Feb 16, 2016

Middleman builds are now fully "clean" by default, but this means that
the .git directory that we first initialize in the build directory gets
automatically removed by middleman build after we first sync with the
gh-pages branch.

This change moves the .git directory to a temp directory before the
middleman build and then moves the git directory back immediatey
afterwards allowing us to properly track changes, commit, and push to
the gh-pages branch.

Fixes #20

@rmm5t rmm5t mentioned this pull request Feb 16, 2016
Middleman builds are now fully "clean" by default, but this means that
the .git directory that we first initialize in the build directory gets
automatically removed by `middleman build` after we first sync with the
gh-pages branch.

This change moves the .git directory to a temp directory before the
middleman build and then moves the git directory back immediatey
afterwards allowing us to properly track changes, commit, and push to
the gh-pages branch.
@rmm5t rmm5t force-pushed the fix-for-clean-builds branch from d8be1ea to 632c8c4 Compare February 16, 2016 20:54
rmm5t added a commit that referenced this pull request Feb 16, 2016
Backup and restore .git directory during middleman builds
@rmm5t rmm5t merged commit aee2958 into edgecase:master Feb 16, 2016
@rmm5t rmm5t deleted the fix-for-clean-builds branch February 16, 2016 20:55
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.

1 participant