-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git pull fatal: NullReferenceException encountered. On an local instance of Bitbucket #1868
Comments
I am seeing the same thing using 2.19.1 against our internal Bitbucket server. Reverting back to 2.19.0 the problem no longer occurs. |
I'm getting the same on internal BitBucket server as well with 2.19.1, while there are no issues with 2.19.0:
My installation was updated from 2.19.0 to 2.19.1 with Chocolatey |
I don't find the error message in the code: Has it also been reported to BitBucket? |
|
I can see this issue appear only when interacting with http repos. It may be a duplicate of this: |
the new release Comes with Git Credential Manager v1.18.0. (ignore the first 'comes with'..) |
I'm guessing that the PR Treat null credentials and tokens as invalid; not as exception errors may be involved from a cursory glance at the various commits that are included in v1.18.0 |
Installing the previous version of git credential manager, 1.17.2, resolves the authentication issues for now. https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.2 |
I am seeing the same thing using 2.19.1 against our internal Bitbucket server. Reverting back to 2.19.0 the problem no longer occurs. |
@adrian109 you may want to consider @epilsits 's solution because of the reason for the V2.19.1 release given in https://public-inbox.org/git/xmqqy3bcuy3l.fsf@gitster-ct.c.googlers.com/ Ultimately, someone will need to have a careful look at (probably the format of) the credentials being passed to see what caused that 'null reference' that is now being treated as 'fatal' |
Fixed in git credential manager 1.18.1. Just install over top. https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.18.1 |
I'm assuming this will be fixed in an upcoming version of git as well? That is, distributing the new credential manager. |
@lassevk moderately soon, hopefully, there will be a minor version release of Git for Windows that will include the updated GCM v1.18.1. [just need more volunteer time for the PR and tests ;-) |
I've been able to fix it by: However, I was going to revert to 2.19.0 to fix it until this worked. Not ideal because it stores the credentials in a text file according to the article, but I am working again. |
This comment nails it: it is fixed in Git Credential Manager v1.18.1, which you can install on top of Git for Windows.
To answer the implied question (I cannot answer the explicit question whether you assume this): yes, the next official Git for Windows version will have a new Git Credential Manager version. Also, the current snapshot at https://wingit.blob.core.windows.net/files/index.html should have it already. |
Setup
defaults?
to the issue you're seeing?
We are using a local install of Bitbucket.
Details
All three shells Git Bash, CMD and PowerShell exhibit the issue.
I expected it to pull the code from the remote origin and print. Already up to date.
fatal: NullReferenceException encountered.
Object reference not set to an instance of an object.
OpenSSH window for https://myusername@ourbitbucketserver.com pops up.
Enter my massword and press OK.
fatal: NullReferenceException encountered.
Object reference not set to an instance of an object.
Already up to date.
URL to that repository to help us with testing?
All repositories on our internal instance of Bitbucket. This issue does not occur against GitHub. I suspect that it is because we our admin implemented single sign on. I am not using ssh for the repositories in question only https. I can provide the URL, but only if contacted directly I don't want to expose it here.
The text was updated successfully, but these errors were encountered: