hbons / SparkleShare

Share and collaborate by syncing with any Git repository instantly. Linux, macOS, and Windows.
https://sparkleshare.org
Other
4.87k stars 579 forks source link

Is there any way to setup SparkleShare client as Download/Overwrite local, instead of sync? #1919

Open irvinyip opened 4 years ago

irvinyip commented 4 years ago

SparkleShare is a really nice software for sync with git.

For my usage, I hope to use it to distribute python code from my private git repository (Gitea) to Windows PC client. Is there any way to do so?

I tried to use "Deploy Key" to make clients read-only but SparkleShare client is creating .sparkleshare and SparkleShare.txt files automatically so that there is always "Failed to send some changes" error on client.

Thanks a lot.

Irvin

CliffS commented 4 years ago

I simply added the following to my personal crontab:

*/15 * * * * cd ~/sparkle && git pull --quiet
hbons commented 4 years ago

If you manually upload the .sparkleshare file (created by a client) to your python repo the clients won't try to create it and you should be good.

irvinyip commented 4 years ago

Thanks a lot @hbons. Manually upload the .sparkleshare and SparkleShare.txt file can make the client update properly. However, the remote origin/master is always showing the initial download 829bd90.

I tried git pull but it said Permission denied (publickey). Fatal: Could not read from remote repository. However the client is updating properly.

Is this normal or after some day, the master [ahead 3] will grow. Do you think there will be any problem?

* master                2fb4cb8 [ahead 3] Change on test7.txt                      
remotes/origin/HEAD   -> origin/master                                           
remotes/origin/master 829bd90 Change on test5 after making test6.txt on Gitea