# Drone exec fails with DRONE\_COMMIT containing colon

**URL:** <https://drone.discourse.group/t/drone-exec-fails-with-drone-commit-containing-colon/9864>\
**Category:** Drone Support\
**Created:** [October 17, 2020, 8:01am UTC](https://drone.discourse.group/t/drone-exec-fails-with-drone-commit-containing-colon/9864 "2020-10-17T08:01:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zanona](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/zanona/32/2624_2.png) [@zanona](https://drone.discourse.group/u/zanona)\
**Post date:** [October 17, 2020, 8:01am UTC](https://drone.discourse.group/t/drone-exec-fails-with-drone-commit-containing-colon/9864/1 "2020-10-17T08:01:48Z")

</div>

Currently, it doesn’t seem to be possible passing a `DRONE_COMMIT` variable containing a colon like `feat: foobar` since the parser tries to convert that into a map type. The same happens when trying to escape quote as `DRONE_COMMIT="\"feat: add feature\""`.

This also seem to be an issue regardless the content of `drone.yml` while using or not the `DRONE_COMMIT` variable.

See below:

```auto
$ drone -v
drone version 1.2.2

$ DRONE_COMMIT="feat - add feature" drone exec # works

$ DRONE_COMMIT="feat: add feature" drone exec
2020/10/17 09:54:22 yaml: unmarshal errors:
  line 52: cannot unmarshal !!map into string

```

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [October 17, 2020, 2:11pm UTC](https://drone.discourse.group/t/drone-exec-fails-with-drone-commit-containing-colon/9864/2 "2020-10-17T14:11:27Z")

</div>

See [https://docs.drone.io/pipeline/environment/substitution/#common-problems](https://docs.drone.io/pipeline/environment/substitution/#common-problems)

---

<div class="post-metadata">

**Author:** ![zanona](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/zanona/32/2624_2.png) [@zanona](https://drone.discourse.group/u/zanona)\
**Post date:** [October 17, 2020, 3:09pm UTC](https://drone.discourse.group/t/drone-exec-fails-with-drone-commit-containing-colon/9864/3 "2020-10-17T15:09:54Z")

</div>

Thank you I have missed the that fact there was a one occurrence of `DRONE_COMMIT` in the pipeline I hadn’t spotted previously, which was causing the issue. Sorry for the false alarm.
