summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix git_status_file for files that start with a character > 0x7f8bit-filename-statusAdam Roben2012-06-075-18/+29
| | | | | | | | | | | | | | | | git_status_file would always return GIT_ENOTFOUND for these files. The underlying bug was that git__strcmp_cb, which is used by git_path_with_stat_cmp to sort entries in the working directory, compares strings based on unsigned chars (this is confirmed by the strcmp(3) manpage), while git__prefixcmp, which is used by workdir_iterator__entry_cmp to search for a path in the working directory, compares strings based on char. So the sort puts this path at the end of the list, while the search expects it to be at the beginning. The fix was simply to make git__prefixcmp compare using unsigned chars, just like strcmp(3). The rest of the change is just adding/updating tests.
* Ingore clar_main.c.ruleAdam Roben2012-06-071-0/+1
|
* Don't include arpa/inet.h on WindowsCarlos Martín Nieto2012-06-061-1/+1
|
* transports: fix bugletMichael Schubert2012-06-052-2/+2
|
* Merge pull request #697 from carlosmn/sslVicent Martí2012-06-0515-81/+457
|\ | | | | Add HTTPS support
| * ssl: allow skipping the server certificate checkCarlos Martín Nieto2012-05-266-2/+24
| | | | | | | | | | Sometimes it's useful not to perform the check. Allow it to be configurable.
| * ssl: look up the last CN the alternative names don't matchCarlos Martín Nieto2012-05-191-11/+54
| |
| * ssl: add support for certificates issues to an IP addressCarlos Martín Nieto2012-05-191-7/+32
| |
| * ssl: remove GnuTLS supportCarlos Martín Nieto2012-05-194-119/+25
| | | | | | | | | | | | It's too much work for now to redo everything. Move the ssl context struct to transport.h
| * ssl: match host names according to RFC 2818 (HTTP over TLS)Carlos Martín Nieto2012-05-191-9/+17
| |
| * ssl: check certificates against the system's trusted CAsCarlos Martín Nieto2012-05-192-3/+106
| |
| * ssl: teardown the connection on closeCarlos Martín Nieto2012-05-193-7/+35
| | | | | | | | | | This should help us free some resources, though the libraries do keep some buffers allocated regardless.
| * https: make it work with OpenSSL as wellCarlos Martín Nieto2012-05-196-20/+102
| | | | | | | | Add specific functions that use OpenSSL instead of GnuTLS
| * http: add https support when GnuTLS is availableCarlos Martín Nieto2012-05-1911-80/+239
| | | | | | | | | | | | | | | | If it's not available, an error saying so will be returned when trying to use a https:// URL. This also unifies a lot of the network code to use git_transport in many places instead of an socket descriptor.
* | Merge pull request #747 from nulltoken/topic/init-filemodeVicent Martí2012-06-053-13/+130
|\ \ | | | | | | Make git_repository_init() value "core.filemode" and "core.ignorecase"
| * | repository: make git_repository_init() value the core.ignorecase config entrynulltoken2012-06-052-19/+92
| | |
| * | repository: make git_repository_init() value the core.filemode config entrynulltoken2012-06-053-1/+45
| | |
* | | Merge pull request #738 from nacho/developmentVicent Martí2012-06-051-1/+1
|\ \ \ | | | | | | | | libgit2-glib bindings moved to gnome servers
| * | | libgit2-glib bindings moved to gnome serversIgnacio Casal Quinteiro2012-05-311-1/+1
| | | |
* | | | tests: Fix warning with nested commentsVicent Marti2012-06-051-1/+1
| | | |
* | | | Merge pull request #714 from schu/config-enotfoundVicent Martí2012-06-051-1/+0
|\ \ \ \ | |_|/ / |/| | | config: do not set an error for GIT_ENOTFOUND
| * | | config: do not set an error for GIT_ENOTFOUNDMichael Schubert2012-05-191-1/+0
| | | | | | | | | | | | | | | | | | | | An unset config variable isn't bad per se -- let the call site set an error in case GIT_ENOTFOUND isn't acceptable.
* | | | Merge pull request #737 from nulltoken/topic/git_remote_add_refspecCarlos Martín Nieto2012-06-044-1/+31
|\ \ \ \ | | | | | | | | | | Remotes and refspecs
| * | | | remote: Make git_remote_add() generate a default refspec with a force update ↵nulltoken2012-06-042-1/+11
| | | | | | | | | | | | | | | | | | | | specifier
| * | | | refspec: expose the force update specifier through git_refspec_force() accessornulltoken2012-05-304-0/+20
| | |/ / | |/| |
* | | | Merge pull request #739 from arthurschreiber/fix_remote_connectedRussell Belfer2012-06-044-0/+14
|\ \ \ \ | | | | | | | | | | Fix git_remote_connected
| * | | | Fix git_close/http_close/local_close to set the transport's connected ↵Arthur Schreiber2012-06-023-0/+5
| | | | | | | | | | | | | | | | | | | | attribute to 0.
| * | | | Add a failing test case for git_remote_disconnect/git_remote_connected.Arthur Schreiber2012-06-021-0/+9
|/ / / /
* | | | config: set an error message when asked to delete a non-existent keyCarlos Martín Nieto2012-06-011-1/+3
|/ / /
* | | Merge pull request #735 from gregier/developmentRussell Belfer2012-05-291-1/+1
|\ \ \ | | | | | | | | Fix checking for the presence of a flag
| * | | Fix checking for the presence of a flagGarrett Regier2012-05-271-1/+1
|/ / /
* | | Merge pull request #734 from scottjg/travis-mingwVicent Martí2012-05-263-5/+8
|\ \ \ | | | | | | | | Enable mingw cross-compilation in travis-ci
| * | | Enable mingw cross-compile stage in travis-ciScott J. Goldman2012-05-261-0/+1
| | | |
| * | | Refactor CMakeLists.txt for mingw cross-compileScott J. Goldman2012-05-261-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two things: 1) By default, Linux CMake puts -fPIC on the link line. So we remove that for MINGW to avoid warnings that it will be ignored. 2) Similarly, move -fvisibility=hidden flag to be for non-mingw compilation only to avoid warnings that it will be ignored.
| * | | Use lowercase names for Windows headersScott J. Goldman2012-05-261-2/+2
|/ / / | | | | | | | | | Otherwise we can't cross-compile on Linux.
* | | Merge pull request #732 from schu/fix-gcc-nonnullVicent Martí2012-05-261-1/+4
|\ \ \ | | | | | | | | tests-clar/core: fix non-null warning
| * | | tests-clar/core: fix non-null warningMichael Schubert2012-05-261-1/+4
|/ / / | | | | | | | | | | | | gcc 4.7.0 apparently doesn't see that we won't call setenv with NULL as second argument.
* | | Make errors for system and global files consistentRussell Belfer2012-05-252-4/+51
| | | | | | | | | | | | | | | | | | | | | The error codes from failed lookups of system and global files on Windows were not consistent with the codes returned on other platforms. This makes the error detection patterns match and adds a unit test for the various errors.
* | | Merge pull request #729 from arrbee/fix-728Vicent Martí2012-05-2410-19/+105
|\ \ \ | | | | | | | | Fix bugs for status
| * | | Fix bugs for status with spaces and reloaded attrsRussell Belfer2012-05-2410-19/+105
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes two bugs: * Issue #728 where git_status_file was not working for files that contain spaces. This was caused by reusing the "fnmatch" parsing code from ignore and attribute files to interpret the "pathspec" that constrained the files to apply the status to. In that code, unescaped whitespace was considered terminal to the pattern, so a file with internal whitespace was excluded from the matched files. The fix was to add a mode to that code that allows spaces and tabs inside patterns. This mode only comes into play when parsing in-memory strings. * The other issue was undetected, but it was in the recently added code to reload gitattributes / gitignores when they were changed on disk. That code was not clearing out the old values from the cached file content before reparsing which meant that newly added patterns would be read in, but deleted patterns would not be removed. The fix was to clear the vector of patterns in a cached file before reparsing the file.
* | | Merge pull request #727 from libgit2/env-expansionVicent Martí2012-05-242-122/+61
|\ \ \ | | | | | | | | windows: Properly expand all environment variables
| * | | Clean up system file finding tests on Win32env-expansionRussell Belfer2012-05-242-20/+11
| | | |
| * | | windows: Properly expand all environment variablesVicent Martí2012-05-241-103/+51
|/ / /
* | | Merge pull request #726 from arrbee/utf16-home-dirRussell Belfer2012-05-243-16/+188
|\ \ \ | | | | | | | | Get user's home dir in UTF-16 clean manner
| * | | Fix bugs in UTF-8 <-> UTF-16 conversionRussell Belfer2012-05-242-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function to convert UTF-16 to UTF-8 was only allocating a buffer of wcslen(utf16str) bytes for the UTF-8 string, but that is not sufficient if you have multibyte characters, and so when those occured, the conversion was failing. This updates the conversion functions to use the Win APIs to calculate the correct buffer lengths. Also fixes a comparison in the unit tests that would fail if you did not have a particular environment variable set.
| * | | Get user's home dir in UTF-16 clean mannerRussell Belfer2012-05-242-3/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, we are having problems with home directories that have non-ascii characters in them. This rewrites the relevant code to fetch environment variables as UTF-16 and then explicitly map then into UTF-8 for our internal usage.
* | | | repository: default to core.bare = false if it's not setCarlos Martín Nieto2012-05-241-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | We used to consider a missing core.bare option to mean that the repository was corrupt. This is too strict. Consider it a non-bare repository if it's not set.
* | | | examples/network: consistently use tabs for indentationCarlos Martín Nieto2012-05-242-126/+126
| | | |
* | | | README: use docs/rel-notes/ for the release notesCarlos Martín Nieto2012-05-241-1/+1
| | | |
* | | | Merge pull request #720 from nulltoken/fix/libgit2sharp_issue_153Vicent Martí2012-05-232-7/+18
|\ \ \ \ | | | | | | | | | | Make git_futils_mkdir_r() able to cope with Windows network paths