imathis/octopress — Issue #361: git with included git repo with master branch in ../_deploy dir is not cloned from github pages blog
Author: petervandenabeele
Created: 2012-01-10 23:20:33+00:00
State: open

This is somewhat of a duplicate of https://github.com/imathis/octopress/issues/336
but now the root cause is understood.

`git clone` of an Octopress repo (the master and source branches) do NOT clone
the internal master repo that is inside the _deploy directory.

* for the source branch, _deploy is in .gitgignore
* for the master branch on github, it is not responsible for
generating the _deploy directory in the source branch
(the non-hidden files there are create by rake generate,
not by a git clone)

The _initial_ _deploy/.git repo is create one time by

`rake setup_github_pages` but when doing a later git clone

on another location from the master or the source branch in github,
the HIDDEN _deploy/.git directory is never recreated (the _deploy
is cleared by rm -rf _deploy/*, that leaves the .git directory intact if
it is there, but if it is not there, there is no standard way to get it there).

I would like to contribute documentation about how this can be
understood and the work around (that is an additional git clone
of master inside the _deploy directory).

The log of a failed attempt is here:

https://gist.github.com/1591822