Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | index tests: test capitalization before mkdirv0.21.3hf/021_patch | Edward Thomson | 2014-12-18 | 1 | -2/+4 |
| | |||||
* | Plug leaks | Carlos Martín Nieto | 2014-12-18 | 1 | -0/+2 |
| | |||||
* | Create miscapitialised dirs for case-sensitive filesystems | Carlos Martín Nieto | 2014-12-18 | 1 | -0/+4 |
| | | | | | We need these directories to exist so cl_git_mkfile() can create the files we ask it to. | ||||
* | Bump version to 0.21.3 | Edward Thomson | 2014-12-17 | 1 | -2/+2 |
| | |||||
* | Introduce core.protectHFS and core.protectNTFS | Edward Thomson | 2014-12-17 | 6 | -44/+151 |
| | | | | | | Validate HFS ignored char ".git" paths when `core.protectHFS` is specified. Validate NTFS invalid ".git" paths when `core.protectNTFS` is specified. | ||||
* | path: Use UTF8 iteration for HFS chars | Vicent Marti | 2014-12-17 | 3 | -81/+132 |
| | |||||
* | checkout: disallow bad paths on HFS | Edward Thomson | 2014-12-17 | 53 | -1/+207 |
| | | | | | | | | HFS filesystems ignore some characters like U+200C. When these characters are included in a path, they will be ignored for the purposes of comparison with other paths. Thus, if you have a ".git" folder, a folder of ".git<U+200C>" will also match. Protect our ".git" folder by ensuring that ".git<U+200C>" and friends do not match it. | ||||
* | reference_create: validate loose names | Edward Thomson | 2014-12-17 | 2 | -4/+46 |
| | | | | Validate loose reference names on Win32. | ||||
* | checkout: disallow bad paths on win32 | Edward Thomson | 2014-12-17 | 94 | -90/+900 |
| | | | | | | | | | | | | | | | Disallow: 1. paths with trailing dot 2. paths with trailing space 3. paths with trailing colon 4. paths that are 8.3 short names of .git folders ("GIT~1") 5. paths that are reserved path names (COM1, LPT1, etc). 6. paths with reserved DOS characters (colons, asterisks, etc) These paths would (without \\?\ syntax) be elided to other paths - for example, ".git." would be written as ".git". As a result, writing these paths literally (using \\?\ syntax) makes them hard to operate with from the shell, Windows Explorer or other tools. Disallow these. | ||||
* | index: Check for valid paths before creating an index entry | Vicent Marti | 2014-12-17 | 2 | -23/+188 |
| | |||||
* | tree: Check for `.git` with case insensitivy | Vicent Marti | 2014-12-17 | 1 | -1/+1 |
| | |||||
* | win32: use NT-prefixed "\\?\" paths | Edward Thomson | 2014-12-17 | 10 | -103/+591 |
| | | | | | | | | | | | | When turning UTF-8 paths into UCS-2 paths for Windows, always use the \\?\-prefixed paths. Because this bypasses the system's path canonicalization, handle the canonicalization functions ourselves. We must: 1. always use a backslash as a directory separator 2. only use a single backslash between directories 3. not rely on the system to translate "." and ".." in paths 4. remove trailing backslashes, except at the drive root (C:\) | ||||
* | clar: wide character comparisons | Edward Thomson | 2014-12-17 | 2 | -0/+42 |
| | |||||
* | tests: use p_ instead of posix func directly | Edward Thomson | 2014-12-17 | 1 | -2/+2 |
| | |||||
* | Bump version to 0.21.2v0.21.2 | Carlos Martín Nieto | 2014-10-27 | 1 | -2/+2 |
| | |||||
* | Merge pull request #2655 from ethomson/v0.21.2 | Carlos Martín Nieto | 2014-10-27 | 13 | -27/+164 |
|\ | | | | | More backports to 0.21 | ||||
| * | global: clean up openssl_locks on shutdown | Edward Thomson | 2014-10-26 | 1 | -1/+7 |
| | | |||||
| * | config test: clean up memory leak | Edward Thomson | 2014-10-25 | 1 | -0/+1 |
| | | |||||
| * | travis ci: build maint branches and development' | Edward Thomson | 2014-10-25 | 1 | -1/+2 |
| | | |||||
| * | Fixed memory leak in git_tag_delete() | Pierre-Olivier Latour | 2014-10-25 | 1 | -2/+3 |
| | | |||||
| * | Patch from @carlosmn to refresh the parent config before snapshotting. | Alan Rogers | 2014-10-25 | 1 | -1/+6 |
| | | |||||
| * | Change the length of the file so that the change is picked up. | Alan Rogers | 2014-10-25 | 1 | -2/+2 |
| | | |||||
| * | Add a test to make sure a new snapshot has the new value. | Alan Rogers | 2014-10-25 | 1 | -1/+14 |
| | | |||||
| * | is_empty_dir (wi32): cope with empty mount points | Edward Thomson | 2014-10-25 | 1 | -16/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | FindFirstFile will fail with INVALID_HANDLE_VALUE if there are no children to the given path, which can happen if the given path is a file (and obviously has no children) or if the given path is an empty mount point. (Most directories have at least directory entries '.' and '..', but ridiculously another volume mounted in another drive letter's path space do not, and thus have nothing to enumerate.) If FindFirstFile fails, check if this is a directory-like thing (a mount point). | ||||
| * | p_lstat win32: don't canonicalize volume mounts | Edward Thomson | 2014-10-25 | 1 | -1/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | A reparse point that is an IO_REPARSE_TAG_MOUNT_POINT could be a junction or an actual filesystem mount point. (Who knew?) If it's the latter, its reparse point will report the actual volume information \??\Volume{GUID}\ and we should not attempt to dereference that further, instead readlink should report EINVAL since it's not a symlink / junction and its original path was canonical. Yes, really. | ||||
| * | Don't copy buffer in checkout unless needed | Edward Thomson | 2014-10-25 | 1 | -6/+8 |
| | | |||||
| * | Ensure filters (i.e. CRLF) are applied when checking out conflict content | Jacques Germishuys | 2014-10-25 | 1 | -3/+19 |
| | | |||||
| * | Introduce failing test for conflict filtering in index | Edward Thomson | 2014-10-25 | 4 | -0/+69 |
| | | |||||
| * | repository_head_unborn: clear error when HEAD is unborn | Edward Thomson | 2014-10-25 | 1 | -1/+3 |
|/ | |||||
* | ssl: dump the SSL ciphers in favour of TLS | Carlos Martín Nieto | 2014-10-24 | 1 | -0/+13 |
| | | | | | | | | | | All versions of SSL are considered deprecated now, so let's ask OpenSSl to only use TLSv1. We still ask it to load those ciphers for compatibility with servers which want to use an older hello but will use TLS for encryption. For good measure we also disable compression, which can be exploitable, if the OpenSSL version supports it. | ||||
* | Merge pull request #2596 from libgit2/cmn/maint-21 | Edward Thomson | 2014-10-11 | 18 | -38/+112 |
|\ | | | | | Add a few backports to 0.21 maintenance | ||||
| * | Silence unused return value warningcmn/maint-21 | Jacques Germishuys | 2014-10-11 | 1 | -1/+1 |
| | | |||||
| * | Ensure patch is initialized to zero, otherwise, the allocated flag may be set | Jacques Germishuys | 2014-10-11 | 1 | -0/+1 |
| | | |||||
| * | Silence uninitialized warning | Jacques Germishuys | 2014-10-11 | 1 | -1/+1 |
| | | |||||
| * | Fixed odb foreach test failure for big-endian 64-bit | Jakub Čajka | 2014-10-11 | 1 | -1/+1 |
| | | |||||
| * | Fixed merge REUC test for big-endian 64-bit | Jakub Čajka | 2014-10-11 | 1 | -1/+1 |
| | | |||||
| * | The raw index buffer content is not guaranteed to be aligned | Jacques Germishuys | 2014-10-11 | 1 | -24/+29 |
| | | | | | | | | * Ensure alignment by copying the content into a structure on the stack | ||||
| * | Ensure pool data is aligned on an 8 byte boundary | Jacques Germishuys | 2014-10-11 | 1 | -1/+1 |
| | | |||||
| * | Introduce GIT_ALIGN | Jacques Germishuys | 2014-10-11 | 1 | -0/+8 |
| | | |||||
| * | git_filter: dup the filter name | Anurag Gupta (OSG) | 2014-10-11 | 1 | -2/+11 |
| | | |||||
| * | config: Fix multiple trailing spaces before comments not completely trimmed | Linquize | 2014-10-11 | 1 | -1/+1 |
| | | |||||
| * | When auto follow tags, FETCH_HEAD should list only newly followed tags | Linquize | 2014-10-03 | 3 | -2/+33 |
| | | |||||
| * | global: free the error message when exiting a thread | Carlos Martín Nieto | 2014-10-03 | 2 | -0/+17 |
| | | | | | | | | | | When we free the global state at thread termination, we must also free the error message in order not to leak the string once per thread. | ||||
| * | Correctly handle getaddrinfo return result | William Swanson | 2014-10-03 | 1 | -1/+1 |
| | | | | | | | | | | | | The getaddrinfo function indicates failure with a non-zero return code, but this code is not necessarily negative. On platforms like Android where the code is positive, a failed call causes libgit2 to segfault. | ||||
| * | Recurse ignored directories when stashing | Jacques Germishuys | 2014-10-03 | 1 | -3/+5 |
| | | |||||
| * | Include git2/odb_backend.h in git2.h | Carlos Martín Nieto | 2014-10-03 | 1 | -0/+1 |
|/ | | | | | | | Since this isn't under sys/ we need to have it included in the main git2.h file. This fixes #2551. | ||||
* | cherrypick: the name is still git_cherry_pick | Carlos Martín Nieto | 2014-09-24 | 1 | -1/+1 |
| | | | | | | A backported fix makes use of the new name for git_cherry_pick (namely git_cherrypick), but we still need to use the old one in the maint branch. | ||||
* | Remove local unused index_repo variable | Jacques Germishuys | 2014-09-16 | 1 | -3/+1 |
| | |||||
* | Only check for workdir conflicts if the index has merged files | Jacques Germishuys | 2014-09-16 | 1 | -0/+10 |
| | | | | | | Passing 0 as the length of the paths to check to git_diff_index_to_workdir results in all files being treated as conflicting, that is, all untracked or modified files in the worktree is reported as conflicting | ||||
* | Added test case to illustrate bogus conflicts detected if no files were ↵ | Jacques Germishuys | 2014-09-16 | 1 | -0/+41 |
| | | | | merged, and untracked files exist in the workdir. |