Skip to content
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: can't commit without staging: 'test/test-ext-authprovider/' does not have a commit checked out #115757

Closed
aeschli opened this issue Feb 4, 2021 · 3 comments
Assignees
Labels
upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@aeschli
Copy link
Contributor

aeschli commented Feb 4, 2021

Version: 1.53.0-insider
Commit: 8490d3d
Date: 2021-02-03T15:54:10.467Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Linux x64 5.8.0-41-generic

In the vscode repo,

  • I make changes to a number of files
  • In the SCM view, I click directly on the Commit button
  • Strange error dialog shows up: error: 'test/test-ext-authprovider/' does not have a commit checked out
    image
Using git 2.27.0 from git
...

> git add -A -- .
error: 'test/test-ext-authprovider/' does not have a commit checked out
fatal: adding files failed
> git fetch

I have set:
"git.smartCommitChanges": "all"

@aeschli aeschli changed the title git: can't commit without staging git: can't commit without staging: 'test/test-ext-authprovider/' does not have a commit checked out Feb 4, 2021
@eamodio
Copy link
Contributor

eamodio commented Feb 8, 2021

@aeschli what is test/test-ext-authprovider/? Do you have something odd in your .gitconfig or in the .git/config file in the vscode repo?

@eamodio eamodio added the info-needed Issue requires more information from poster label Feb 8, 2021
@aeschli
Copy link
Contributor Author

aeschli commented Feb 9, 2021

Looks like I have a folder test/test-ext-authprovider in my vscode repo folder.
How it got there I don't understand.
It only has empty folders in it so it doesn't show up as an outgoing change. But it still seems to block auto commit.

image

@eamodio
Copy link
Contributor

eamodio commented Feb 10, 2021

I can't reproduce this by creating empty folders like this. But the failure seems to be coming directly from git given your output:

> git add -A -- .
error: 'test/test-ext-authprovider/' does not have a commit checked out
fatal: adding files failed

So I don't think there is anything we can do here. Might be a bug in Git.

@eamodio eamodio added upstream Issue identified as 'upstream' component related (exists outside of VS Code) and removed info-needed Issue requires more information from poster labels Feb 10, 2021
@eamodio eamodio closed this as completed Feb 10, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants