Signing back into the Community for the first time? You'll need to reset your password to access your account.  Find out more.

Forum Discussion

Former Member's avatar
Former Member
2 years ago

Improve git credential provider error messaging

As I use pre-commit, this is what it looks like when 1passowrd is not open and I want to auto-sign my commit.
```
> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /Users/jvacek/.cache/pre-commit/patch1690875440-82635.
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check for merge conflicts................................................Passed
Check for added large files..............................................Passed
Mixed line ending........................................................Passed
pip-compile requirements.in..........................(no files to check)Skipped
pip-compile requirements-dev.in......................(no files to check)Skipped
Lint YAML............................................(no files to check)Skipped
Lint Python..............................................................Passed
Python imports order.....................................................Passed
[INFO] Restored changes from /Users/jvacek/.cache/pre-commit/patch1690875440-82635.
error: Could not connect to socket. Is the agent running?

fatal: failed to write commit object
```

The error line should contain some mention of 1P, because in this context the error message looks like it's relevant to the pre-commit. My first thought was that this was a Docker message which confused me. Someone made a topic on SO for it as well.

If it's within your guys' control, it might be nice to fix the message


1Password Version: Nightly, 81012006
Extension Version: Not Provided
OS Version: macOS 13.5
Browser: VSCode

No Replies