pedroborges / kirby-autogit

⬢ Saves every change made via Kirby Panel to a Git repository
149 stars 23 forks source link

Deleted images not getting committed in git #48

Closed fitzage closed 6 years ago

fitzage commented 6 years ago

So the image upload issue is fixed, but if I delete an image that doesn't get committed.

fitzage commented 6 years ago

I think this is any file, although it may just be files related to the image (the text description about the image, for example).

fitzage commented 6 years ago

Yeah, it's not just images. Pages, too. I deleted a page that also had several files, and git status from the command line gives me this:

# On branch master
# Changes not staged for commit:
#   (use "git add/rm <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       deleted:    content/smartmoney/SmartMoney_brochure_print.pdf
#       deleted:    content/smartmoney/author.jpg
#       deleted:    content/smartmoney/logo.svg
#       deleted:    content/smartmoney/smartmoney.txt
#
no changes added to commit (use "git add" and/or "git commit -a")
fitzage commented 6 years ago

I thought for a minute maybe it was because I wasn't on the latest version of Kirby, but both kirby and autogit are at the latest now.

fitzage commented 6 years ago

@pedroborges So I just got back from vacation, and I'll want to be poking into this again soon when I have the chance. Any idea what could be causing deleted items to not be committed?

fitzage commented 6 years ago

Could this be a git version issue?

fitzage commented 6 years ago

Gah. I think it's that it requires git 2.something and centos only gives you 1.8.something by default.