br function - set upstream branch