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:
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
2424v4.1.2
2525=======
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ def test_parse_call_order(wd):
8080def 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-" )
You can’t perform that action at this time.
0 commit comments