Make sure $ensure is passed through to repo correctly

Signed-off-by: Ken Barber <ken@bob.sh>