Hash :
b5daae68
Author :
Date :
2011-12-14T12:34:43
Allow git_buf_joinpath to accept self-joins It was not safe for git_buf_joinpath to be used with a pointer into the buf itself because a reallocation could invalidate the input parameter that pointed into the buffer. This patch makes it safe to self join, at least for the leading input to the join, which is the common "append" case for self joins. Also added unit tests to explicitly cover this case. This should actually fix #511
| Git HTTP | https://git.kmx.io/thodg/libgit2.git |
|---|---|
| Git SSH | git@git.kmx.io:thodg/libgit2.git |
| Public access ? | public |
| Description | |
|
Users |
|
| Tags |
|
For information on the Clay testing framework and a detailed introduction please visit:
https://github.com/tanoku/clay
Write your modules and tests. Use good, meaningful names.
Mix the tests:
./clay -vtap .
Make sure you actually build the tests by setting:
BUILD_CLAY=ON
Test:
./build/libgit2_clay
Make sure everything is fine.
Send your pull request. That’s it.