Properly support git branches.