Pull file from Gitlab in pre-receive stage

I am trying to create a script to run during gitlab pre-receive server hook. I am looking to download a particular file from remote in this stage. Is it possible? If yes, which git command can help.