summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | Merge remote-tracking branch 'origin/master' into ↵Alan Rogers2014-07-2256-318/+538
| | |\ \ \ | | | | |/ | | | |/| | | | | | fix-git-status-list-new-unreadable-folder
| | * | | Merge remote-tracking branch 'origin/development' into ↵Alan Rogers2014-07-108-53/+147
| | |\ \ \ | | | | | | | | | | | | | | | | | | fix-git-status-list-new-unreadable-folder
| | * \ \ \ Merge remote-tracking branch 'origin/development' into ↵Alan Rogers2014-06-0433-102/+835
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix-git-status-list-new-unreadable-folder Conflicts: include/git2/diff.h
| | * | | | | Add another test for unreadable and not included.Alan Rogers2014-06-041-0/+32
| | | | | | |
| | * | | | | Add GIT_STATUS_OPT_INCLUDE_UNREADABLE_AS_UNTRACKEDAlan Rogers2014-06-031-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and a (failing) test for it.
| | * | | | | Fix the no permissions test.Alan Rogers2014-05-301-3/+2
| | | | | | |
| | * | | | | Use 'X' for unreadable status.Alan Rogers2014-05-301-0/+3
| | | | | | |
| | * | | | | We do expect the foo path in the nopermissions testAlan Rogers2014-05-231-2/+2
| | | | | | |
| | * | | | | Remove errant newlineAlan Rogers2014-05-221-1/+0
| | | | | | |
| | * | | | | Simplify the no permission test.Alan Rogers2014-05-211-6/+4
| | | | | | |
| | * | | | | Skip unreadable files for now.Alan Rogers2014-05-151-2/+5
| | | | | | |
| | * | | | | Simplify the test.Alan Rogers2014-05-151-10/+5
| | | | | | |
| | * | | | | Add a test (failing) for a work tree status.Alan Rogers2014-05-141-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When thees is an unreadable folder, we should still be able to enumerate status.
| * | | | | | git_cherry_pick -> git_cherrypickEdward Thomson2014-07-223-31/+31
| | |_|_|/ / | |/| | | |
| * | | | | Merge pull request #2476 from linquize/config-lf-eofVicent Marti2014-07-161-0/+16
| |\ \ \ \ \ | | | | | | | | | | | | | | When adding new config section, handle config file not ending with LF
| | * | | | | Add unit test to test add section without lf at EOFLinquize2014-07-161-0/+16
| | | | | | |
| * | | | | | Merge pull request #2467 from ethomson/win_local_cloneVicent Marti2014-07-161-13/+43
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | | Handle local file:/// paths on Windows
| | * | | | | Handle local file:/// paths on WindowsEdward Thomson2014-07-111-13/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows can't handle a path like `/c:/foo`; when turning file:/// URIs into local paths, we must strip the leading slash.
| * | | | | | Switch description and path reportingEdward Thomson2014-07-151-1/+1
| | |_|_|_|/ | |/| | | |
| * | | | | Merge pull request #2463 from libgit2/cmn/ssh-factory-for-pathsVicent Marti2014-07-111-0/+65
| |\ \ \ \ \ | | | | | | | | | | | | | | ssh: provide a factory function for setting ssh paths
| | * | | | | ssh: provide a factory function for setting ssh pathscmn/ssh-factory-for-pathsCarlos Martín Nieto2014-07-071-0/+65
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git allows you to set which paths to use for the git server programs when connecting over ssh; and we want to provide something similar. We do this by providing a factory function which can be set as the remote's transport callback which will set the given paths upon creation.
| * | | | | refspec: support asterisks in the middle of a patternCarlos Martín Nieto2014-07-041-0/+23
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to assume a refspec would only have an asterisk in the middle of their respective pattern. This has not been a valid assumption for some time now with git. Instead of assuming where the asterisk is going to be, change the logic to treat each pattern as having two halves with a replacement bit in the middle, where the asterisk is.
| * | | | Merge pull request #2460 from libgit2/cmn/sched-yieldVicent Marti2014-07-031-0/+14
| |\ \ \ \ | | | | | | | | | | | | Move yield to the tests and enable for FreeBSD
| | * | | | Move yield to the tests and enable for FreeBSDcmn/sched-yieldCarlos Martín Nieto2014-07-031-0/+14
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Move the definition of git_thread_yield() to the test which needs it and add the correct definition for it for FreeBSD and derivatives. Original patch adding FreeBSD and derivatives by @jacquesg.
| * | | | Merge pull request #2459 from libgit2/cmn/http-url-pathVicent Marti2014-07-031-0/+18
| |\ \ \ \ | | | | | | | | | | | | netops: error out on url without a path
| | * | | | netops: error out on url without a pathcmn/http-url-pathCarlos Martín Nieto2014-07-031-0/+18
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | In order to connect to a remote server, we need to provide a path to the repository we're interested in. Consider the lack of path in the url an error.
| * | | | Merge pull request #2455 from ethomson/equal_oidVicent Marti2014-07-0240-151/+161
| |\ \ \ \ | | | | | | | | | | | | Introduce `cl_assert_equal_oid`
| | * | | | revwalk::simplify test should testEdward Thomson2014-07-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The revwalk::simplify test was not actually tested the values from the revwalk against the expected. (Further, the expected had two IDs transposed.)
| | * | | | Introduce cl_assert_equal_oidEdward Thomson2014-07-0139-148/+158
| | | | | |
| * | | | | Merge pull request #2453 from ethomson/checkout_indexVicent Marti2014-07-021-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | git_checkout_index: checkout other indexes
| | * | | | | git_checkout_index: checkout other indexesEdward Thomson2014-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git_checkout_index can now check out other git_index's (that are not necessarily the repository index). This allows checkout_index to use the repository's index for stat cache information instead of the index data being checked out. git_merge and friends now check out their indexes directly instead of trying to blend it into the running index.
| * | | | | | Merge pull request #2452 from libgit2/cmn/clone-custom-repoVicent Marti2014-07-024-87/+55
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | | Provide a callback to customize the repository on clone
| | * | | | | 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.
| * | | | | | Round up pool alloc sizes for alignmentrb/round-up-pool-allocationsRussell Belfer2014-06-301-5/+5
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make sure that items returned from pool allocations are aligned on nice boundaries, this rounds up all pool allocation sizes to a multiple of 8. This adds a small amount of overhead to each item. The rounding up could be made optional with an extra parameter to the pool initialization that turned on rounding only for pools where item alignment actually matters, but I think for the extra code and complexity that would be involved, that it makes sense just to burn a little bit of extra memory and enable this all the time.
| * | | | | 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.
* | | | ssh: adjust clone and push test credentials to the split user+pass methodCarlos Martín Nieto2014-06-262-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For urls where we do not specify a username, we must handle the case where the ssh transport asks us for the username. Test also that switching username fails.
* | | | ssh: make sure to ask for a username and use the same oneCarlos Martín Nieto2014-06-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to know which authentication methods are supported/allowed by the ssh server, we need to send a NONE auth request, which needs a username associated with it. Most ssh server implementations do not allow switching the username between authentication attempts, which means we cannot use a dummy username and then switch. There are two ways around this. The first is to use a different connection, which an earlier commit implements, but this increases how long it takes to get set up, and without knowing the right username, we cannot guarantee that the list we get in response is the right one. The second is what's implemented here: if there is no username specified in the url, ask for it first. We can then ask for the list of auth methods and use the user's credentials in the same connection.
* | | | ssh: request credentials again on authentication failureCarlos Martín Nieto2014-06-261-0/+31
| | | | | | | | | | | | | | | | | | | | Instead of completely giving up on the first failure, ask for credentials as long as we fail to authenticate.
* | | | ssh: propagate the error code from the auth callbackCarlos Martín Nieto2014-06-171-2/+1
| | | | | | | | | | | | | | | | We need to be able to get a GIT_EUSER back through the outermost call.
* | | | ssh: detect authentication methodsCarlos Martín Nieto2014-06-171-0/+15
|/ / / | | | | | | | | | | | | | | | | | | | | | Before calling the credentials callback, ask the sever which authentication methods it supports and report that to the user, instead of simply reporting everything that the transport supports. In case of an error, we do fall back to listing all of them.