Use second parameter for branch if it is given, instead of present branch.