Skip to content

Commit

Permalink
#52: Fix compatibility with Git 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Nov 14, 2022
1 parent 1904644 commit c0ceab2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Unreleased

* Fixed Git 2.7.0 compatibility by changing `git log --no-show-signature` to `git -c log.showsignature=false log`.

## v1.14.0 (2022-11-07)

* Added a `strict` option to prevent falling back to `0.0.0` when there are no tags.
Expand Down
2 changes: 1 addition & 1 deletion dunamai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ def from_git(
return cls._fallback(strict, distance=0, dirty=True, branch=branch)
commit = msg

code, msg = _run_cmd('git log --no-show-signature -n 1 --pretty=format:"%cI"')
code, msg = _run_cmd('git -c log.showsignature=false log -n 1 --pretty=format:"%cI"')
timestamp = _parse_git_timestamp_iso_strict(msg)

code, msg = _run_cmd("git describe --always --dirty")
Expand Down

0 comments on commit c0ceab2

Please sign in to comment.