libgit2/libgit2 — pull request #1286 by lznuaa (2013-01-28 02:23:32+00:00)
Title: Fix clone fail if repo head detached

Set head detach if can't found branch after download

Signed-off-by: Frank Li