poetry icon indicating copy to clipboard operation
poetry copied to clipboard

Expose git errors instead of printing a generic error message

Open amirebrahimi opened this issue 1 year ago • 1 comments

Issue Kind

Change in current behaviour

Description

Currently, if there are any git errors when run as a subprocess, the following error will be presented to the user: Failed to clone <git repo>, check your git configuration and permissions for this repository

Impact

This can be misleading to the user in one case we've found, which is when long filename support needs to be enabled. What would be ideal is if the error message from git is exposed to the user.

Workarounds

Enabling long filename support and setting git config --system core.longpaths true fixes the issue, but a user wouldn't know to do that unless they dug in further.

amirebrahimi avatar Oct 31 '24 21:10 amirebrahimi

make a merge request!

dimbleby avatar Oct 31 '24 22:10 dimbleby

Thank you @alexprabhat99 and @abn

amirebrahimi avatar Jan 23 '25 19:01 amirebrahimi

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Feb 23 '25 00:02 github-actions[bot]