git: merge-base takes references

Testing Done:
ci.sh locally succeeds

travis: https://travis-ci.org/cheecheeo/pants/builds/32479798

Reviewed at https://rbcommons.com/s/twitter/r/884/