Commits
- Commit:
27b75514d9b1c8e9f188ef9c483760647a8c1b72
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not send a pack file when 'got send' is only deleting branches
The git protocol spec says the client MUST NOT send a pack file
if the only command used is 'delete'.
Fixes 'got send -d' against Github's server which closed the session
upon receiving the empty pack file we sent. This problem wasn't caught
by regression tests since git-daemon does accept an empty pack file.
Problem reported by jrick.
- Commit:
2ae2891d0e4f8e66706be6eb6394c199f18b7691
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove github capabilities workaround from got-send-pack, it is not needed
This workaround was inherited from git9, which claims that Github did
not send capabilities. Protocol traces show that Github's server does
in fact advertise its capabilities. Git protocol capabilities are hidden
behind a NUL byte in the middle of the first refline sent by the server.
This makes them easy to miss when treating a refline as a C string.
I guess this is why Ori concluded that Github didn't send any capabilities.
Or perhaps Github has been fixed since.
- Commit:
26ac815fc44811dc1fa663baa02c1a65836dd649
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
remove unused name variables, noticed by naddy@
- Commit:
0ff2bf469bd8c4cf24498832b2937041076a7d7f
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
clean up weird grammar. not sure what i was thinking.
- Commit:
16c4be8c1cab9456f9dd0468c27f8ab73235737e
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
fix to allow empty send and fetch blocks, ok stsp@
- Commit:
cfd923335bc72b12508df8bafe2f19ea43ddd4ad
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
add send and fetch plumbing to parser for got.conf
This is the beginning of support for naddy's suggestion to break this out
similar to git. More code to come from stsp.
ok stsp@
- Commit:
2f1457c6ccfe722888511926c09af843da3bee0d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow deletion of refs/remotes/ branches with got branch -d
Also, make requirements for branch name arguments more flexible.
Absolute reference names are now accepted.
ok naddy@
- Commit:
a099809f2873564368fcd20d3d7be32ce4a5bc12
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
more manual page updates following the introduction of 'got send'
- Commit:
93a300b296848449897d95643acc8a689b0480b1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
small man page spelling fixes
- Commit:
4408b20f8eddc1e1e4f3c865b8b59895590c0778
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
update the TODO list
- Commit:
fd44090b628aa7213949d0e8bcc696bf651aaa91
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tweak the man page section about 'got send'
In particular, attempt to describe the -f option better.
- Commit:
1bd76734ce8e567c3f156533dc1af31878bd5a65
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix the output of 'got send -d' upon success
Previous output was: Already up-to-date
New output is: Server has deleted refs/heads/branch
Check this behavour in the related regression test.
- Commit:
f9756a57e7f0fc01ee242aaca9a6d512c7af2310
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Use POSIX-compatible syntax in send.sh tests. Patch by naddy@
- Commit:
f8a36e221091eb68b439ebe4eb07a5d03b335c28
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add 'got send' command for sending changes to remote repositories
Known to work against git-daemon and github Git server implementations.
Tests by abieber, naddy, jrick, and myself.
Man page additions reviewed by Lucas.
- Commit:
3379373c62efb02a719d4b6e040189f348470f0a
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
use POSIX [ s1 = s2 ] syntax instead of [ s1 == s2 ]
- Commit:
8991a328535f89f3f2257269f5c2d3fcec8bda69
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a missing bounds-check in got-fetch-pack when parsing server response
The tokenize_refline() function could end up reading past the end of
the buffer if the refline is not terminated with whitespace or \0.
- Commit:
a90356f7c470563a35922c4cbb01824558dcf207
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
prevent NULL deref in got-fetch-pack if server does not announce capabilities
The my_capabilities pointer may remain NULL. Check for NULL before use.
- Commit:
14d2b281dd2fafec8beebfca6b5911b0ff21d676
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix the error message shown when the server sends a bad ref line
Exposed by trying to run got clone -l against shithub.us over git://
found by abieber@
- Commit:
63e5aa5c34d2e70074f9c3a1f42b7b7188a785fa
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Expose got_ref_name_is_valid() for general purpose use.
This will be needed for a future 'got send' command.
- Commit:
dc7edd429e3aae9d685c43504872d528567f3007
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix miscalculation of the final pack file size reported by got_pack_create()
- Commit:
cce2f4851ec199cbdf54fd82f3cc5ab38d5d68f3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
expose got_ref_resolve_symbolic() at the public library API
This will be needed by a future 'got send' command.
- Commit:
0af64e86449b8d836b04b25ece0bbc5543a75238
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug a memory leak in an error path of got_deltify()
- Commit:
dd29967c8be9311a99ae3310d49789c65989498e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got_deltify() rellocate the deltas array less often
- Commit:
9ca26ac322eae778bdfe032617ce9f6af859bb7a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
style fix: avoid comparison of pointer variable against 0 in got-fetch-pack
- Commit:
72acb3d8f4f1aa47fe21329180083cef02695490
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unused 'repo' argument from got_reflist_insert()