# SSH runner: Honor clone depth property from pipeline on checkout

**URL:** <https://drone.discourse.group/t/ssh-runner-honor-clone-depth-property-from-pipeline-on-checkout/4557>\
**Category:** Drone Bugs\
**Created:** [November 2, 2020, 3:03pm UTC](https://drone.discourse.group/t/ssh-runner-honor-clone-depth-property-from-pipeline-on-checkout/4557 "2020-11-02T15:03:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmur2](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/cmur2/32/2806_2.png) [@cmur2](https://drone.discourse.group/u/cmur2)\
**Post date:** [November 2, 2020, 3:03pm UTC](https://drone.discourse.group/t/ssh-runner-honor-clone-depth-property-from-pipeline-on-checkout/4557/1 "2020-11-02T15:03:19Z")

</div>

When using the SSH runner from DockerHub `drone/drone-runner-ssh:latest` with a pipeline like:

```auto
kind: pipeline
type: ssh
name: ci

server:
  host: XXX
  user: XXX
  ssh_key:
    from_secret: XXX

clone:
  depth: 1

steps:
- name: hello
  commands:
  - echo Hello

```

…the output shows that the `depth: 1` property is not respected although the [docs say so](https://docker-runner.docs.drone.io/configuration/cloning):

```auto
+ git init
Initialized empty Git repository in /tmp/drone-DNfuPrrazu5C3MMX/drone/src/.git/
+ git remote add origin XXX
+ git fetch origin +refs/heads/add-ci:
From XXX
 * branch add-ci -> FETCH_HEAD
 * [new branch] add-ci -> origin/add-ci
+ git checkout XXX -b add-ci
Switched to a new branch 'add-ci'

```

I opened a PR to address this in [https://github.com/drone-runners/drone-runner-ssh/pull/2](https://github.com/drone-runners/drone-runner-ssh/pull/2)
