printBranch displays current git revision if there is no current branch