gitkraken / gk-cli

GitKraken CLI Releases and Documentation
https://www.gitkraken.com
Other
122 stars 48 forks source link

[BUG] attempting to create a patch from an untracked file gives an error #37

Closed jkelroy closed 6 months ago

jkelroy commented 7 months ago

Description

On Windows using Powershell, if you attempt to create a patch from an untracked file, you get the response Error: patch data cannot be blank.

  1. Open a repository and create a new file
  2. Attempt to create a patch using gk patch create and follow the prompts or use gk patch create --from-wip --title <title

Error: patch data cannot be blank

Creating a patch with the repository in the same state from GitKraken Client works as expected. Also, if you commit the file and create a patch from this commit it works as expected.

GitKraken CLI Version

1.4.0

OS Version

Windows 11 Pro v10.0.22621 Build 22621

Git Version

git version 2.41.0.windows.3

Logs, Screenshots, Screen Captures, URLs, etc

image

sergiolms commented 6 months ago

This issue should be solved in v1.5.0