applicationsonline/librarian — pull request #37 by databus23 (2012-02-04 23:10:33+00:00)
Title: bugfix git source cache when referencing branches

This is a proposed bugfix for Issue #36.

When referencing a branch in the Cheffile, the way the local cache is updated is not really pulling in changes from the remote repository:

git fetch --tags
git checkout #{reference}

This patch changes the cache update procedure to:

git remote update
git checkout #{reference}
git merge origin/#{reference} # fails when :ref is a tag, errors are disregarded