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

Got SparkleShare and git working somewhate #19

Merged
merged 5 commits into from
Aug 3, 2012

Conversation

J5
Copy link

@J5 J5 commented Jul 28, 2012

No description provided.

@hbons
Copy link

hbons commented Jul 28, 2012

Nice! I should add that SparkleShare invites now require a host fingerprint, for example: <fingerprint>16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48</fingerprint> for SparkleShare to accept and clone the repo.

EmilyDirsh added a commit that referenced this pull request Aug 3, 2012
Got SparkleShare and git working somewhate
@EmilyDirsh EmilyDirsh merged commit 1a9c6a9 into glittergallery:master Aug 3, 2012
@sonalkr132
Copy link
Collaborator

Hi! Git stuff is working now ( check #302) Sparkleshare is able to clone public projects as well. I am no expert on working on working of sparkleshare, my guess is that it is using polling for now. Any idea about how do I go about sending notification to notification server? @hbons Would a symlink of this post-hook be enough?

I have set up invite url as sparkleshare://ruby-glitterfollowers.rhcloud.com/addie/cards/invite.xml, however that doesn't work either. On chrome is launches xdg-open application. I am not sure what am I doing wrong here (besides not adding fingerprint)

Also, is there any way I can allow syncing of private projects as well and not have them ask my credentials every time sparkleshare tries to sync them.

@hbons
Copy link

hbons commented Jun 28, 2015

Here's a git-hook that posts to the notification service: https://github.com/hbons/SparkleShare/wiki/Notification-service#git-hook

@sonalkr132
Copy link
Collaborator

Thanks @hbons It is the same hook I referenced.
is it possible to cache credentials for a sparkleshare client over smart http protocol?

@hbons
Copy link

hbons commented Jun 28, 2015

Oh, I missed the link in your comment. That's all you need to post a notification. Note the service is down at the moment. If it can't be reached SparkleShare falls back to polling. You can also specify your own notification service address in the invite XML.

If you're asked about credentials your SSH probably isn't added to your ssh-agent on login. You can also use the key provided by SparkleShare which doesn't use a password so won't ask you for one. SparkleShare doesn't support HTTPS.

@sonalkr132
Copy link
Collaborator

SparkleShare doesn't support HTTPS

It does. This might sound weird cause you wrote SparkleShare. It is able to fetch public repos over HTTPS. Only thing missing is that there is no way to cache HTTPS credentials. So every time SparkleShare tries to push to repo, it promts for username and password. If I fill them correctly, SparkleShare is able to push as well. SparkleShare is using polling so I am asked to verify every 5 minutes or so and that is really annoying.

EDIT: I am talking about Fedora 21. git push (or clone of private projects) fails silently on ubuntu 14.04 and windows 8 with following error message in debug log:

fatal: could not read Username for 'http://ruby-glitterfollowers.rhcloud.com': No such device or address

@hbons
Copy link

hbons commented Jun 28, 2015

There are many more issues with HTTPS in SparkleShare. It works sometimes, but it doesn't do anything like certificate validation, handling authentication, or errors. So it's not officially supported and is not recommended.

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

Successfully merging this pull request may close these issues.

4 participants