- 16 Aug, 2014 1 commit
-
-
The recv buffer (parse_buffer) and the buffer have independent sizes and offsets. We try to fill in parse_buffer as much as possible before passing it to the http parser. This is fine most of the time, but fails us when the buffer is almost full. In those situations, parse_buffer can have more data than we would be able to put into the buffer (which may be getting full if we're towards the end of a data sideband packet). To work around this, we check if the space we have left on our buffer is smaller than what could come from the network. If this happens, we make parse_buffer think that it has as much space left as our buffer, so it won't try to retrieve more data than we can deal with. As the start of the data may no longer be at the start of the buffer, we need to keep track of where it really starts (data_offset) and use that in our calculations for the real size of the data we received from the network. This fixes #2518.
Carlos Martín Nieto committed
-
- 15 Aug, 2014 9 commits
-
-
git_remote_ls() crashes before connect is called
Vicent Marti committed -
Jacques Germishuys committed
-
SPNEGO authentication via GSSAPI
Vicent Marti committed -
Edward Thomson committed
-
Edward Thomson committed
-
Decode base64-encoded text into a git_buf
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
- 14 Aug, 2014 4 commits
-
-
The online::push::notes test pushes a note but leaves it hanging around for other tests to stumble across when they're validating that they're seeing the refs they expect to see. Clean it up on exit.
Edward Thomson committed -
Edward Thomson committed
-
Custom transport: minor cleanups
Vicent Marti committed -
* Move the transport registration mechanisms into a new header under 'sys/' because this is advanced stuff. * Remove the 'priority' argument from the registration as it adds unnecessary complexity. (Since transports cannot decline to operate, only the highest priority transport is ever executed.) Users who require per-priority transports can implement that in their custom transport themselves. * Simplify registration further by taking a scheme (eg "http") instead of a prefix (eg "http://").
Edward Thomson committed
-
- 13 Aug, 2014 4 commits
-
-
Don't include the unreadable tests on win32
Vicent Marti committed -
Edward Thomson committed
-
Allow NULL error message prefix when class=GITERR_OS
Vicent Marti committed -
Edward Thomson committed
-
- 09 Aug, 2014 2 commits
-
-
config: a multiline var can start immediately
Vicent Marti committed -
In the check for multiline, we traverse the backslashes from the end backwards and int the end assert that we haven't gone past the beginning of the line. We make sure of this in the loop condition, but we also check in the return value. However, for certain configurations, a line in a multiline variable might be empty to aid formatting. In that case, 'end' == 'start', since we ended up looking at the first char which made it a multiline. There is no need for the (end > start) check in the return, since the loop guarantees we won't go further back than the first char in the line, and we do accept the first char to be the final backslash. This fixes #2483.
Carlos Martín Nieto committed
-
- 08 Aug, 2014 3 commits
-
-
Typo in timer constants
Vicent Marti committed -
Don't report status on named pipes
Vicent Marti committed -
Git skips entries in directories that are not S_ISDIR, S_ISREG, or S_ISLNK, so let's make libgit2 do the same thing.
Russell Belfer committed
-
- 07 Aug, 2014 1 commit
-
-
Compatibility/Portability cleanup
Vicent Marti committed
-
- 05 Aug, 2014 10 commits
-
-
The effect of this would be that various update callbacks would not be made at the correct interval.
Russell Belfer committed -
Jacques Germishuys committed
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
* Removes mingw-compat.h * Cleans up separation of compiler/platform idiosyncrasies * Unifies mingw/msvc stat structures and functions * (Tries to) hide more compiler specific implementation details (even in our internal API)
Jacques Germishuys committed -
Jacques Germishuys committed
-
Jacques Germishuys committed
-
Solaris doesn't necessarily have stdint.h, use inttypes.h
Vicent Marti committed -
Jacques Germishuys committed
-
- 25 Jul, 2014 2 commits
-
-
Work around strict aliasing in array growth
Vicent Marti committed -
This works around strict aliasing rules letting some versions of GCC (particularly on RHEL 6) thinking that they can skip updating the size of the array when calculating the next element's offset.
Carlos Martín Nieto committed
-
- 24 Jul, 2014 1 commit
-
-
Preallocating two commits doesn't make much sense as leaving allocation to the first array usage will allocate a sensible size with room for growth. This preallocation has also been hiding issues with strict aliasing in the tests, as we have fairly simple histories and never trigger the growth.
Carlos Martín Nieto committed
-
- 23 Jul, 2014 3 commits
-
-
Don't allow conflicts by default
Vicent Marti committed -
Fix git status list new unreadable folder
Vicent Marti committed -
Alan Rogers committed
-