I was working from the glitch UI so far, and the project was added to git instantly for every change that i made.
Now i am trying to clone to my local Webstorm, but i get a version that is not up to date.
I checked ‘git status’ on glitch’s console, and i saw that i have to add the updates files manually.
i tried ‘git add .’ and i got:
$ git add .
error: insufficient permission for adding an object to repository database .git/objects
error: {oneOfOurFiles}.js: failed to insert into database
error: unable to index file {oneOfOurFiles}.js
fatal: updating files failed
If you’re not committing to git within the project yourself, then your changes are only committed automatically around every 15 minutes or so. So when you’re pulling from git, it could be running a few minutes behind. Is that the issue you’re seeing?
Sometimes when i do some work in the glitch website, the changes are pushed automatically. But sometimes it doesn’t pushed automatically.
And then i have to add and commit it myself from the glitch console.
Adding and committing from the console can work, and in some cases it fails and i get:
$ git add .error: insufficient permission for adding an object to repository database .git/objectserror: Folder/File.js: failed to insert into databaseerror: unable to index file Folder/File.jsfatal: updating files failed
so i have to do this changes locally on my IDE, and then push from there, and then merge the master with this branch.
I had a hard time explaining, i hope you understood
thanks for your report! We’ll investigate on the root cause. In the meantime, I’ve fixed your project so from now on you should be able to commit changes normally.
$ git add .
error: insufficient permission for adding an object to repository database .git/objects
error: RequestPerformer.js: failed to insert into database
error: unable to index file RequestPerformer.js
fatal: updating files failed