aboutsummaryrefslogtreecommitdiff
path: root/gittorrentd
AgeCommit message (Collapse)Author
2015-06-06gittorrentd: Use git-upload-pack for pack files.Scott Prager
Add `upload_pack` to the git module to (partially) implement the pack protocol, then use this in gittorrentd instead of `git pack-objects`. This lets us generate packs based off HEAD instead of packing the whole tree each time.
2015-06-06Use `git ls-remote` to get local refs.Scott Prager
`git ls-remote` gives us the same info as `git-upload-pack`, but in an easier to parse format. We can also share the code for interpreting `git ls-remote` between git-remote-gittorrent and gittorrentd. This also fixes the problem of `publish_mutable_key()` being called too soon.
2015-06-03use rc to get rid of hardcoded configurationLars-Magnus Skog
2015-06-03git: fix communication protocol.Scott Prager
git-remote-gittorrent: Only fetch a reference when git sends a "fetch" command. It knows when it already has a commit and won't ask for it. If it asks for nothing, quit early. Store references in a dictionary so that when asked for a specific sha, we can find its reference quickly. gittorrentd: Add branches to `userProfile`, even if that sha has already been announced. Fix the parsing of `git-upload-pack`'s output to not skip the line pointing to `HEAD`.
2015-06-03support branchesScott Prager
git-remote-gittorrent: Call `git ls-remote` without the 'HEAD' argument to get all references and build a list of them. Use a different swarm for each ref and don't quit until we have them all. gittorrentd: Parse the branch name out of references and store the sha's in userProfile[reponame][branch] instead of userProfile[reponame].master.
2015-05-31remove debugging messageAntoine Beaupré
2015-05-31make debug message more usefulAntoine Beaupré
2015-05-31find bare repos and ignore read errorsAntoine Beaupré
this will still warn us, but at least not completely crash
2015-05-30Remove name/email blanks too.Chris Ball
2015-05-30Disable publishing name/email for now, as requested by #9Chris Ball
2015-05-29gittorrentd: Use a random peerId on handshake, else swarm disconnectsChris Ball
2015-05-28Use gittorrentd as our bootstrap nodeChris Ball
2015-05-28Use new bootstrap serversChris Ball
2015-05-27Rename! gitswarm->gittorrentChris Ball