dimitri/el-get — Issue #558: Some git remotes do not support shallow clones
Author: DarwinAwardWinner
Created: 2012-02-14 01:39:39+00:00
State: open

Some git remotes, in particular dumb http remotes, do not support the `--depth` flag. So setting `el-get-git-shallow-clone` to non-nil will cause installation to fail.

I've pushed 72b411a which fixes some recipes by explicitly adding `:shallow nil`, but it would be nice if there was a fallback mechanism for when shallow cloning fails, or a way to automatically detect whether a remote supports shallow cloning.

I've asked about this on Stack Overflow: http://stackoverflow.com/questions/9270488/is-it-possible-to-detect-whether-a-http-git-remote-is-smart-or-dumb