Copy this from gitorious.