- 07 Jun, 2012 2 commits
-
-
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.
Adam Roben committed -
Adam Roben committed
-
- 06 Jun, 2012 1 commit
-
-
Carlos Martín Nieto committed
-
- 05 Jun, 2012 8 commits
-
-
Michael Schubert committed
-
Add HTTPS support
Vicent Martí committed -
Make git_repository_init() value "core.filemode" and "core.ignorecase"
Vicent Martí committed -
nulltoken committed
-
libgit2-glib bindings moved to gnome servers
Vicent Martí committed -
Vicent Marti committed
-
config: do not set an error for GIT_ENOTFOUND
Vicent Martí committed -
nulltoken committed
-
- 04 Jun, 2012 3 commits
-
-
Remotes and refspecs
Carlos Martín Nieto committed -
nulltoken committed
-
Fix git_remote_connected
Russell Belfer committed
-
- 02 Jun, 2012 2 commits
-
-
Arthur Schreiber committed
-
Arthur Schreiber committed
-
- 01 Jun, 2012 1 commit
-
-
Carlos Martín Nieto committed
-
- 31 May, 2012 1 commit
-
-
Ignacio Casal Quinteiro committed
-
- 29 May, 2012 2 commits
-
-
nulltoken committed
-
Fix checking for the presence of a flag
Russell Belfer committed
-
- 27 May, 2012 5 commits
-
-
Garrett Regier committed
-
Enable mingw cross-compilation in travis-ci
Vicent Martí committed -
Scott J. Goldman committed
-
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.
Scott J. Goldman committed -
Otherwise we can't cross-compile on Linux.
Scott J. Goldman committed
-
- 26 May, 2012 3 commits
-
-
Sometimes it's useful not to perform the check. Allow it to be configurable.
Carlos Martín Nieto committed -
tests-clar/core: fix non-null warning
Vicent Martí committed -
gcc 4.7.0 apparently doesn't see that we won't call setenv with NULL as second argument.
Michael Schubert committed
-
- 25 May, 2012 3 commits
-
-
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.
Russell Belfer committed -
Fix bugs for status
Vicent Martí committed -
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.
Russell Belfer committed
-
- 24 May, 2012 9 commits
-
-
windows: Properly expand all environment variables
Vicent Martí committed -
Russell Belfer committed
-
Vicent Martí committed
-
Get user's home dir in UTF-16 clean manner
Russell Belfer committed -
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.
Russell Belfer committed -
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.
Carlos Martín Nieto committed -
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.
Russell Belfer committed -
Carlos Martín Nieto committed
-
Carlos Martín Nieto committed
-