Skip to content

Include git SHA as part of 'gdk version' output

What does this Merge Request do?

This MR adds the git SHA of the GDK checkout into the output of gdk version as the GDK repo changes more frequently than we bump the Ruby gem version.

Before

$ gdk version
GitLab Development Kit gem version 0.2.10

After

$ cd /tmp
$ gdk version
GitLab Development Kit 0.2.11

$ cd ~/src/gitlab/gitlab-development-kit
$ gdk version
GitLab Development Kit 0.2.11 (9c192062)

Merge Request checklist

  • Tests added for new functionality. If not, please raise Issue to follow-up.
  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Documentation added/updated, if needed.
  • gdk doctor test added, if needed.

Closes #1191 (closed)

Edited by Ash McKenzie

Merge request reports