diff --git a/CHANGELOG.md b/CHANGELOG.md index 335d3fe..d15a0cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.4.1 (2020-11-17) + +* For Git, replaced `--porcelain=v1` with `--porcelain` to maintain compatibility + with older Git versions. + ## v1.4.0 (2020-11-17) * Added the `--bump` command line option and the `bump` argument to diff --git a/dunamai/__init__.py b/dunamai/__init__.py index 10859a4..d464760 100644 --- a/dunamai/__init__.py +++ b/dunamai/__init__.py @@ -345,7 +345,7 @@ def from_git(cls, pattern: str = _VERSION_PATTERN, latest_tag: bool = False) -> dirty = msg.endswith("-dirty") if not dirty: - code, msg = _run_cmd("git status --porcelain=v1") + code, msg = _run_cmd("git status --porcelain") if msg.strip() != "": dirty = True diff --git a/foo.txt b/foo.txt new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/foo.txt @@ -0,0 +1 @@ +foo diff --git a/pyproject.toml b/pyproject.toml index 5928d24..94dcec4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dunamai" -version = "1.4.0" +version = "1.4.1" description = "Dynamic version generation" license = "MIT" authors = ["Matthew T. Kennerly "]