File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Bugfixes:
19
19
* fix #321: add suppport for the ``SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${DISTRIBUTION_NAME} `` env var to target the pretend key
20
20
* fix #142: clearly list supported scm
21
21
* fix #213: better error message for non-zero dev numbers in tags
22
-
22
+ * fix #356: add git branch to version on describe failure
23
23
24
24
v4.1.2
25
25
=======
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ def test_parse_call_order(wd):
80
80
def test_version_from_git (wd ):
81
81
assert wd .version == "0.1.dev0"
82
82
83
+ assert git .parse (str (wd .cwd ), git .DEFAULT_DESCRIBE ).branch == "master"
84
+
83
85
wd .commit_testfile ()
84
86
assert wd .version .startswith ("0.1.dev1+g" )
85
87
assert not wd .version .endswith ("1-" )
You can’t perform that action at this time.
0 commit comments