Skip to content

Commit 5caa8e0

Browse files
add test and changelog for #356
1 parent 7afad49 commit 5caa8e0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Bugfixes:
1919
* fix #321: add suppport for the ``SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${DISTRIBUTION_NAME}`` env var to target the pretend key
2020
* fix #142: clearly list supported scm
2121
* fix #213: better error message for non-zero dev numbers in tags
22-
22+
* fix #356: add git branch to version on describe failure
2323

2424
v4.1.2
2525
=======

testing/test_git.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def test_parse_call_order(wd):
8080
def test_version_from_git(wd):
8181
assert wd.version == "0.1.dev0"
8282

83+
assert git.parse(str(wd.cwd), git.DEFAULT_DESCRIBE).branch == "master"
84+
8385
wd.commit_testfile()
8486
assert wd.version.startswith("0.1.dev1+g")
8587
assert not wd.version.endswith("1-")

0 commit comments

Comments
 (0)