awestruct/awestruct — pull request #194 by mojavelinux (2012-12-08 08:26:12+00:00)
Title: Handle case when using detached branch (as Travis CI does)

If the current branch is detached, handle it gracefully. An attempt to checkout the branch '(no branch)' will fail. In this case, the current commit sha (retrieved from revparse HEAD) must be used as the return branch.

This problem is observed when Travis CI uses this deployer.