src/cmdlib.sh: drop branch from git commit
Drop the branch from git json. Quay performs builds against detached Git
branches. Running `rev-parse --abbrev-ref HEAD` to figure out the
branch, you get 'HEAD' which is invalid. The heuristics to determine the
parent branch are painful; having the ref and the origin url is
sufficient.
@@ -307,7 +307,6 @@ prepare_git_artifacts() {
{
"date": "$(date -u +$RFC3339)",
"git": {
- "branch": "${branch}",
"commit": "${rev}",
"origin": "${head_url}",
"dirty": "${is_dirty}"
