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 files corrupt #142

Closed
bbkiwi opened this issue Feb 17, 2013 · 2 comments
Closed

Git files corrupt #142

bbkiwi opened this issue Feb 17, 2013 · 2 comments

Comments

@bbkiwi
Copy link

bbkiwi commented Feb 17, 2013

Hi Justin,

Two issues really. The first is that I put a .gitignore file in my-pi-projects/Adafruit_CharLCDPlate with

*.pyc
Temp*.py
.gitignore

No .pyc files have be pushed, but files TempLCDTest.py has been pushed. My idea was to be able to work on a file and not get it pushed each time I save it in WebIDE.

The second issue is I think nothing is getting pushed. I made some changes today, bitbucket says last changes 2 mins ago, but they are not there. If I run git status I get

pi@raspberrypi /usr/share/adafruit/webide/repositories/my-pi-projects/Adafruit_CharLCDPlate $ git status
error: object file .git/objects/a9/b30954916fb82c8ea08bb5c0b837fef0d27413 is empty
fatal: loose object a9b30954916fb82c8ea08bb5c0b837fef0d27413 (stored in .git/objects/a9/b30954916fb82c8ea08bb5c0b837fef0d27413) is corrupt

Thanks.

@jwcooper
Copy link
Member

You're most likely going to have to re-clone the repository. Ensure that the code is in bitbucket (manually copy, or save off to the side, if not), and then open the terminal and delete the entire 'my-pi-projects folder. Refresh the editor, and it should be back, if not, manually clone it again.

I'm also working on an option to enable a manual git push button so that you don't need to work in temp files, and can push when you're ready.

I've added a default .gitignore for the future to hopefully prevent something like this happening. Thanks!

@jwcooper
Copy link
Member

jwcooper commented Apr 9, 2013

I've added a few features to help with this issue in the future. Better error handling, ability to refresh repositories, and directories, and manual git pushes.

Let me know if you run into this in the future. Thanks!

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