wimh/SparkleShare — Issue #20: Continous git pushing when file is not readable
Author: kyak
Created: 2011-10-24 07:26:49+00:00
State: open

Hello,

If there is some file in SparkleShare folder which cannot be read (the good example is temporary, or lock file from Microsoft Office: "~$My_Super_Presentation.pptx" or similar), then SparkleShare tries to git push indefinite times in a row:

11:15:47 [SyncUp][ss] Initiated
11:15:47 [Cmd] git add --all
error: open("~$My_Super_Presentation.pptx"): Permission denied
error: unable to index file ~$My_Super_Presentation.pptx
fatal: adding files failed
11:15:47 [Git][ss] Changes staged
11:15:47 [Cmd] git status --porcelain
11:15:47 [Cmd] git commit -m "" --author="My Name "
11:15:47 [Commit][ss]
11:15:47 [Cmd] git push origin master
Everything up-to-date
11:15:52 [SyncUp][ss] Done
11:15:52 [Cmd] git rev-list --reverse HEAD
11:15:52 [Cmd] git log -1 --format=%H
11:15:52 [Listener] Not connected to tcp://204.62.14.135:1986/. Queuing message
11:15:52 [Cmd] git status --porcelain
11:15:52 [SyncUp][ss] Initiated

...and so on, it never stops until i close the presentation.