def get_current_branch(self, location):
<EOL>args = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>output = self.run_command(<EOL>args, extra_ok_returncodes=(<NUM_LIT:1>, ), show_stdout=False, cwd=location,<EOL>)<EOL>ref = output.strip()<EOL>if ref.startswith('<STR_LIT>'):<EOL><INDENT>return ref[len('<STR_LIT>'):]<EOL><DEDENT>return None<EOL>
Return the current branch, or None if HEAD isn't at a branch
(e.g. detached HEAD).