Use commits endpoint to get latest SHA for stash.

Too many branches on our big repo matching "master" >:[

From https://answers.atlassian.com/questions/265515/how-to-resolve-branch-name-to-sha-with-rest-api#

@robolson @cheister