resolve #150: optimize git-ship checkouts

@kevgo please review
You could inline the variable `branch_name` here.