Skip to content

Commit

Permalink
Add note about shallow clone #83
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Jul 30, 2023
1 parent 533757b commit af47572
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ Changelog
----

.. changelog::
:version: 1.13.3
:version: 1.13.4

.. change::
:tags: docs, feature
:tickets: 83

Update documentation to mention shallow clone issues.

.. change::
:tags: general, feature
Expand Down
25 changes: 24 additions & 1 deletion docs/command.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _command:

Console command
-----------------------------------
---------------

Package contains script `setuptools-git-versioning` which can be used for calculating version number.\

Expand Down Expand Up @@ -92,6 +92,29 @@ This script is a wrapper for ``setuptools_git_versioning`` module, you can just
1.0.0
CI configuration
----------------
By default, CI workflows use shallow clone of the repo to speed up clone process.
But this leads to cloning repo without any tags, and thus generating version number like ``0.0.1``.
To avoid this, please use following settings:
.. code-block:: yaml
:caption: Github Actions
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
.. code-block:: yaml
:caption: Gitlab CI
variables:
GIT_DEPTH: 0
Command help
~~~~~~~~~~~~~
Expand Down

0 comments on commit af47572

Please sign in to comment.