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

Index file is empty (.git/index) #1821

Closed
jsetienr opened this issue Sep 14, 2023 · 3 comments
Closed

Index file is empty (.git/index) #1821

jsetienr opened this issue Sep 14, 2023 · 3 comments

Comments

@jsetienr
Copy link

While I try to deploy any file via sfdx with VSCode to my Salesforce ORG, I find an issue since yesterday with this description:

12:17:19.226 Starting SFDX: Deploy Source to Org

An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: Index file is empty (.git/index)

I deploy my components from VSCode using SFDX with right click -> SFDX: Deploy source to ORG .
I already try to close VSCode, logout from Salesforce linked ORG, updating Salesforce CLI... other commands works fine as usually f.ex.:

  • SFDX: Diff file against ORG
  • SFDX: Execute Anonymous Apex with Editor Contents works fine as usually.
@sqlahmansour
Copy link

sqlahmansour commented Sep 14, 2023

I encountered the same issue today... SF Command lines does not seem to work, SFDX does... But the VS interface does not work

@sqlahmansour
Copy link

Hey again @jsetienr,
I managed to fix the issue by deleting both .sf and .sfdx folders and then on the command palette run : Developer: Reload Window.

I hope it fixes your issue.

Also, make sure to have latest SF plugins updates on visual code.

@jsetienr
Copy link
Author

Thank you so much @sqlahmansour !
I followed your advice and it worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants