Pretty much the same thing as #24568 but for getting a single commit instead of getting a list of commits