summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* clone: remote git_clone_into{,_local} from the public APIcmn/clone-custom-repoCarlos Martín Nieto2014-07-024-87/+55
| | | | | | As git_clone now has callbacks to configure the details of the repository and remote, remove the lower-level functions from the public API, as they lack some of the logic from git_clone proper.
* Merge pull request #2440 from phkelley/transportsVicent Marti2014-06-303-29/+70
|\ | | | | Improvements to git_transport extensibility
| * Improvements to git_transport extensibilityPhilip Kelley2014-06-263-29/+70
| | | | | | | | | | git_remote_set_transport now takes a transport factory rather than a transport git_clone_options now allows the caller to specify a remote creation callback
* | checkout::conflict tests: only test owner modeEdward Thomson2014-06-261-1/+1
|/ | | | | | | The checkout::conflict type conflict tests were failing because they were overly assertive about the resultant mode, testing group & other bits, which failed miserably for people who had a umask less restrictive than 022. Only test the resultant owner bits.
* Update text=auto / core.autocrlf=false behaviorEdward Thomson2014-06-241-2/+7
| | | | | | | Git for Windows 1.9.4 changed the behavior when the text=auto attribute is specified and core.autocrlf=false. Previous observed behavior would *not* filter files when going into the working directory, the new behavior *does* filter. Update our behavior to match.
* Merge remote-tracking branch 'upstream/cmn/mixed-eol-passthrough'Carlos Martín Nieto2014-06-242-26/+10
|\
| * crlf: pass-through mixed EOL buffers from LF->CRLFcmn/mixed-eol-passthroughCarlos Martín Nieto2014-06-232-26/+10
| | | | | | | | | | | | | | | | | | | | When checking out files, we're performing conversion into the user's native line endings, but we only want to do it for files which have consistent line endings. Refuse to perform the conversion for mixed-EOL files. The CRLF->LF filter is left as-is, as that conversion is considered to be normalization by git and should force a conversion of the line endings.
* | Merge remote-tracking branch 'upstream/cmn/treebuilder-perf'Carlos Martín Nieto2014-06-241-2/+6
|\ \
| * | treebuilder: use a map instead of vector to store the entriesCarlos Martín Nieto2014-06-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finding a filename in a vector means we need to resort it every time we want to read from it, which includes every time we want to write to it as well, as we want to find duplicate keys. A hash-map fits what we want to do much more accurately, as we do not care about sorting, but just the particular filename. We still keep removed entries around, as the interface let you assume they were going to be around until the treebuilder is cleared or freed, but in this case that involves an append to a vector in the filter case, which can now fail. The only time we care about sorting is when we write out the tree, so let's make that the only time we do any sorting.
* | | Share packs across repository instancescmn/global-mwfCarlos Martín Nieto2014-06-231-0/+42
| |/ |/| | | | | | | | | | | | | | | | | | | Opening the same repository multiple times will currently open the same file multiple times, as well as map the same region of the file multiple times. This is not necessary, as the packfile data is immutable. Instead of opening and closing packfiles directly, introduce an indirection and allocate packfiles globally. This does mean locking on each packfile open, but we already use this lock for the global mwindow list so it doesn't introduce a new contention point.
* | test: remove assembla clone testcmn/clone-auth-changeCarlos Martín Nieto2014-06-131-6/+0
| | | | | | | | | | | | | | The assembla failure we were seeing referred to a private repository, which is not what is there at the moment. This reverts 1fd21b0342f
* | test: use read-only accountCarlos Martín Nieto2014-06-131-3/+3
|/ | | | | | Don't write in plaintext the password of an account which has full control over the repository. Instead use an account with read-only access.
* Merge pull request #2407 from libgit2/cmn/remote-rename-morev0.21.0-rc1Vicent Marti2014-06-083-39/+106
|\ | | | | More remote rename fixes
| * remote: don't free the remote on deletecmn/remote-rename-moreCarlos Martín Nieto2014-06-061-1/+1
| | | | | | | | This was a bad idea. Don't free except in the free function.
| * remote: failing test for renaming with a symrefCarlos Martín Nieto2014-06-061-0/+48
| |
| * remote: return problem refspecs instead of using a callbackCarlos Martín Nieto2014-06-062-38/+57
| | | | | | | | | | | | There is no reason why we need to use a callback here. A string array fits better with the usage, as this is not an event and we don't need anything from the user.
* | Win32: Fix object::cache::threadmania test on x64Philip Kelley2014-06-073-5/+5
| |
* | Win32: Fix diff::workdir::submodules test #2361Philip Kelley2014-06-071-2/+2
| |
* | Win32: Fix failing clone_mirror testPhilip Kelley2014-06-071-0/+3
|/
* remote: failing test for renameCarlos Martín Nieto2014-06-061-0/+30
| | | | | When there is a reference in the target namespace, we should overwrite it. Instead it gets a different name under the current code.
* Merge pull request #2395 from libgit2/cmn/ref-iter-concurrentRussell Belfer2014-06-031-0/+33
|\ | | | | Concurrent ref iterator access
| * refs: failing test for concurrent ref accessCarlos Martín Nieto2014-06-021-0/+33
| | | | | | | | | | If we remove a reference while we're iterating through the packed refs, the position in the iterator will be off.
* | Merge pull request #2389 from ↵Vicent Marti2014-06-031-0/+9
|\ \ | | | | | | | | | | | | arthurschreiber/arthur/set-error-when-no-remote-found Remote: Set an error when a remote cannot be found.
| * | Remote: Set an error when a remote cannot be found.Arthur Schreiber2014-05-301-0/+9
| | | | | | | | | | | | | | | | | | | | | Inside `git_remote_load`, the calls to `get_optional_config` use `giterr_clear` to unset any errors that are set due to missing config keys. If neither a fetch nor a push url config was found for a remote, we should set an error again.
* | | Plug a leak in the testsCarlos Martín Nieto2014-06-031-0/+2
| |/ |/|
* | Ignore core.safecrlf=warn until we have a warn infrastructureEdward Thomson2014-05-301-0/+41
|/
* Refs: Extend unicode test for branch creation.Arthur Schreiber2014-05-301-0/+3
| | | | | | This adds another assertion to ensure that the reference name inside the git_reference struct returned by `git_branch_create` is returned as precomposed if `core.precomposeunicode` is enabled.
* Refs: Add a unicode test for git_branch_move.Arthur Schreiber2014-05-301-0/+17
| | | | | This tests that decomposed branch names are correctly precomposed when passed to `git_branch_move` and `core.precomposeunicode` is enabled.
* Merge pull request #2011 from libgit2/cmn/clone-localVicent Marti2014-05-292-0/+131
|\ | | | | Local clone
| * clone: more explicit local testscmn/clone-localCarlos Martín Nieto2014-05-291-14/+29
| | | | | | | | | | Assert the exact amount of links we expect. While there, check that a plain git_clone() automatically chooses to link.
| * clone: allow for linking in local cloneCarlos Martín Nieto2014-05-281-0/+59
| | | | | | | | | | | | | | | | If requested, git_clone_local_into() will try to link the object files instead of copying them. This only works on non-Windows (since it doesn't have this) when both are on the same filesystem (which are unix semantics).
| * fileops: allow linking files when copying directory structuresCarlos Martín Nieto2014-05-281-0/+26
| | | | | | | | | | When passed the LINK_FILES flag, the recursive copy will hardlink files instead of copying them.
| * clone: add flag not to linkCarlos Martín Nieto2014-05-281-0/+2
| |
| * clone: add flags to override whether to perform a local cloneCarlos Martín Nieto2014-05-281-0/+29
| |
* | Merge pull request #2380 from libgit2/cmn/index-add-modesVicent Marti2014-05-281-0/+15
|\ \ | | | | | | index: check for valid filemodes on add
| * | index: check for valid filemodes on addcmn/index-add-modesCarlos Martín Nieto2014-05-221-0/+15
| |/
* | Merge pull request #2385 from karipe/developmentVicent Marti2014-05-282-3/+3
|\ \ | | | | | | Fix compile error on Visual Studio
| * | Fix compile error on Visual StudioCha, Hojeong2014-05-272-3/+3
| |/
* | Modify GIT_MERGE_CONFIG -> GIT_MERGE_PREFERENCEEdward Thomson2014-05-271-18/+18
| |
* | Move GIT_MERGE_CONFIG_* to its own enumEdward Thomson2014-05-271-31/+38
| |
* | Introduce GIT_MERGE_CONFIG_* for merge.ff settingsEdward Thomson2014-05-271-0/+26
|/ | | | | | git_merge_analysis will now return GIT_MERGE_CONFIG_NO_FASTFORWARD when merge.ff=false and GIT_MERGE_CONFIG_FASTFORWARD_ONLY when merge.ff=true
* Merge pull request #2376 from libgit2/cmn/remote-symrefVicent Marti2014-05-222-0/+68
|\ | | | | Add support for the symref extension
| * remote: add api to guess the remote's default branchCarlos Martín Nieto2014-05-211-0/+50
| | | | | | | | | | If the remote supports the symref protocol extension, then we return that, otherwise we guess with git's rules.
| * remote: expose the remote's symref mappingsCarlos Martín Nieto2014-05-211-0/+18
| | | | | | | | | | Add a symref_target field to git_remote_head to expose the symref mappings to the user.
* | Merge pull request #2375 from libgit2/rb/safecrlf-on-lf-platformVicent Marti2014-05-222-3/+21
|\ \ | |/ |/| Make core.safecrlf not generate an error on LF-ending platforms
| * Make core.safecrlf work on LF-ending platformsRussell Belfer2014-05-192-3/+21
| | | | | | | | | | | | If you enabled core.safecrlf on an LF-ending platform, we would error even for files with all LFs. We should only be warning on irreversible mappings, I think.
* | Fix a leak in the testsCarlos Martín Nieto2014-05-201-1/+1
|/
* Merge pull request #2354 from libgit2/cmn/clone-into-mirrorVicent Marti2014-05-192-0/+59
|\ | | | | Allow mirror-clone via `git_clone_into()`
| * clone: add failing test for a mirror-clone with clone_intoCarlos Martín Nieto2014-05-192-0/+59
| | | | | | | | | | Show a failure to perform a mirror-clone from a repository, both local and remote.
* | message: don't assume the comment charcmn/comment-charCarlos Martín Nieto2014-05-182-8/+8
| | | | | | | | | | The comment char is configurable and we need to provide a way for the user to specify which comment char they chose for their message.