Cloning repos

Hi everybody!
Please clarify the following…
As far as I understand (maybe incorrectly) each task on different stage leads to cloning the repository. How to avoid it? So for example I have two stages and one task per each stage. I see that task on second stage clones the repository. Is it possible to avoid the cloning on second stage?

Hope that explanation is clear
Waiting for your answers

I don’t think this is possible. You can set the GIT_DEPTH environment variable to a low value to avoid getting all the git history.

Can you specify why you want do this ?