Skip to content

Git for Windows 2.26.1 and up crash on "git log" custom date format (--pretty='format:%cd') #3624

@3c0

Description

@3c0

Setup

$ git --version --build-options

git version 2.34.1.windows.1
cpu: i686
built from commit: 2ca94ab318509b3c271e82889938816bad76dfea
sizeof-long: 4
sizeof-size_t: 4
shell-path: /bin/sh
feature: fsmonitor--daemon
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [version 10.0.19044.1415]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"

Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Rebase
Use Credential Manager: Disabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Enabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

GNU bash, version 4.4.23(1)-release (i686-pc-msys)

git log --date='format:%Y-%m-%d %H:%M' --pretty='format:%cd'
  • What did you expect to occur after running these commands?

Listing of commit dates.

  • What actually happened instead?

Segmentation fault

  • Origin of bug :

Git for Windows 2.26.1
Bug Fixes : Git now accepts more date formats such as %g and %V.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions