Might be nicer to make `branch` default to `None`, so that you don't have to specify a branch name if you just want to use whatever branch is currently checked out.