Skip to content

Commit

Permalink
Change --porcelain=v1 to --porcelain for compatibility and release v1…
Browse files Browse the repository at this point in the history
….4.1
  • Loading branch information
mtkennerly committed Nov 17, 2020
1 parent 37e90d3 commit 7fb70af
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion dunamai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions foo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
foo
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <mtkennerly@gmail.com>"]
Expand Down

0 comments on commit 7fb70af

Please sign in to comment.