# How to do shallow cloning

**URL:** <https://drone.discourse.group/t/how-to-do-shallow-cloning/4070>\
**Category:** Drone Support\
**Created:** [April 2, 2020, 3:15pm UTC](https://drone.discourse.group/t/how-to-do-shallow-cloning/4070 "2020-04-02T15:15:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Panchajanya1999](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/panchajanya1999/32/3098_2.png) [@Panchajanya1999](https://drone.discourse.group/u/Panchajanya1999)\
**Post date:** [April 2, 2020, 3:15pm UTC](https://drone.discourse.group/t/how-to-do-shallow-cloning/4070/1 "2020-04-02T15:15:54Z")

</div>

I dont think cloning with depth=1 is there on the current repository. Any way to enable this?

---

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [April 2, 2020, 6:26pm UTC](https://drone.discourse.group/t/how-to-do-shallow-cloning/4070/2 "2020-04-02T18:26:44Z")

</div>

If the default cloning does not meet your needs, you can disable and write your own clone commands. See [https://docs.drone.io/pipeline/docker/syntax/cloning/#custom-logic](https://docs.drone.io/pipeline/docker/syntax/cloning/#custom-logic)
