Change the command to get the current branch name for git.

Authored by pprkut on Jan 19 2014, 12:45 PM.

Description

Change the command to get the current branch name for git.

"git sumbolic-ref" also provides a valid branch name when the
repository is empty. In detached HEAD state it has an empty
output, which is exactly what we did before manually. However,
in that case it also returns with a non-zero exit code which
we need to ignore.

REVIEW: 115121

Details

Committed
pprkutJan 20 2014, 12:54 AM
Parents
R32:6a7434de813d: Add an ignoreError flag to the DVcsJob class.
Branches
Unknown
Tags
Unknown