Correct the API call used when doing a push.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>