summaryrefslogtreecommitdiff
path: root/tests-clar/online
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-146-1491/+0
|
* Merge pull request #1956 from libgit2/cmn/fetch-default-headVicent Martí2013-11-114-44/+44
|\ | | | | Remote revamp (director's cut)
| * tests: update push testsCarlos Martín Nieto2013-11-113-19/+23
| | | | | | | | These tests were forgotten when modifying git_remote_ls().
| * remote: make _ls return the list directlyCarlos Martín Nieto2013-11-114-25/+21
| | | | | | | | | | | | | | | | | | | | | | The callback-based method of listing remote references dates back to the beginning of the network code's lifetime, when we didn't know any better. We need to keep the list around for update_tips() after disconnect() so let's make use of this to simply give the user a pointer to the array so they can write straightforward code instead of having to go through a callback.
* | Change the git_branch_iterator_new and git_branch_next definitions to use ↵Arthur Schreiber2013-11-051-1/+1
| | | | | | | | git_branch_t.
* | branch: move from foreach to an iteratorCarlos Martín Nieto2013-11-051-22/+15
|/ | | | | | | | Create a git_branch_iterator type which is equivalent to the foreach but lets us write loops instead of callbacks. Since the introduction of git_reference_shorthand(), the added value of passing the name is reduced.
* Merge pull request #1912 from ethomson/push_err_messagesVicent Martí2013-10-281-33/+42
|\ | | | | Test for failure, but don't test the error message
| * Test for failure, but don't test the error messageEdward Thomson2013-10-251-33/+42
| |
* | Rename the ssh credentialsCarlos Martín Nieto2013-10-231-2/+2
|/ | | | | | The names from libssh2 are somewhat obtuse for us. We can simplify the usual key/passphrase credential's name, as well as make clearer what the custom signature function is.
* Allowed credential types should be a bitfieldEdward Thomson2013-10-211-10/+21
|
* Merge pull request #1886 from libgit2/precompose-utf8Vicent Martí2013-10-081-1/+1
|\ | | | | Add support for core.precomposeunicode on Mac
| * Clean up annoying warningsRussell Belfer2013-10-031-1/+1
| | | | | | | | | | | | | | The indexer code was generating warnings on Windows 64-bit. I looked closely at the logic and was able to simplify it a bit. Also this fixes some other Windows and Linux warnings.
* | Add Assembla unit testBen Straub2013-10-081-0/+6
|/
* Style tweaks and changes for code review feedbackJameson Miller2013-10-031-0/+2
|
* Fix broken online push testsJameson Miller2013-10-021-4/+0
|
* Support cancellation in push operationJameson Miller2013-10-021-2/+4
| | | | | | | | | | | | | | | | This commit adds cancellation for the push operation. This work consists of: 1) Support cancellation during push operation - During object counting phase - During network transfer phase - Propagate GIT_EUSER error code out to caller 2) Improve cancellation support during fetch - Handle cancellation request during network transfer phase - Clear error string when cancelled during indexing 3) Fix error handling in git_smart__download_pack Cancellation during push is still only handled in the pack building and network transfer stages of push (and not during packbuilding).
* clone: put the callbacks struct directly in the clone optionsCarlos Martín Nieto2013-10-022-23/+13
| | | | There's no need for this to be a pointer to somewhere else.
* clone: implement git_clone_intoCarlos Martín Nieto2013-10-021-0/+39
| | | | | This allows you to set up the repository and remote as you which to have them before performing the clone operation.
* remote: move the credentials callback to the structCarlos Martín Nieto2013-10-023-6/+12
| | | | | Move this one as well, letting us have a single way of setting the callbacks for the remote, and removing fields from the clone options.
* remote: put the _download() callback with the othersCarlos Martín Nieto2013-10-025-9/+35
| | | | | | The text progress and update_tips callbacks are already part of the struct, which was meant to unify the callback setup, but the download one was left out.
* Initial Implementation of progress reports during pushJameson Miller2013-09-301-31/+53
| | | | | | | | | | | | | | | | | | | | | | This adds the basics of progress reporting during push. While progress for all aspects of a push operation are not reported with this change, it lays the foundation to add these later. Push progress reporting can be improved in the future - and consumers of the API should just get more accurate information at that point. The main areas where this is lacking are: 1) packbuilding progress: does not report progress during deltafication, as this involves coordinating progress from multiple threads. 2) network progress: reports progress as objects and bytes are going to be written to the subtransport (instead of as client gets confirmation that they have been received by the server) and leaves out some of the bytes that are transfered as part of the push protocol. Basically, this reports the pack bytes that are written to the subtransport. It does not report the bytes sent on the wire that are received by the server. This should be a good estimate of progress (and an improvement over no progress).
* Disconnect path string to preserve after redirectRussell Belfer2013-09-241-0/+5
| | | | | | | | | | | | The subtransport path was relying on pointing to data owned by the remote which meant that after a redirect, the updated path was getting lost for future requests. This updates the http transport to strdup the path and maintain its own lifetime. This also pulls responsibility for parsing the URL back into the http transport and isolates the functions that parse and free that connection data so that they can be reused between the initial parsing and the redirect parsing.
* No such thing as an orphan branchCarlos Martín Nieto2013-09-171-1/+1
| | | | | | | | | | | Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
* Merge pull request #1778 from libgit2/push_tag_to_tag_testVicent Martí2013-08-161-0/+12
|\ | | | | push: handle tag chains correctly
| * test that suggests tags arent fully peeled during pushEdward Thomson2013-07-121-0/+12
| |
* | Test SSH in travisCarlos Martín Nieto2013-08-141-0/+10
|/ | | | | | | | | | | Set up the ssh credentials so we are able to talk to localhost and issue git commands. Move to use a script, as the command list is getting somewhat long. While here, delay installing valgrind until we need it, as it and its dependencies are by far the largest downloads and this allows us to start compiling (and failing) faster and we only incur this cost when the test suite runs successfully.
* Reorganize diff and add basic diff driverRussell Belfer2013-06-102-2/+3
| | | | | | | | | | | | | | | | | | This is a significant reorganization of the diff code to break it into a set of more clearly distinct files and to document the new organization. Hopefully this will make the diff code easier to understand and to extend. This adds a new `git_diff_driver` object that looks of diff driver information from the attributes and the config so that things like function content in diff headers can be provided. The full driver spec is not implemented in the commit - this is focused on the reorganization of the code and putting the driver hooks in place. This also removes a few #includes from src/repository.h that were overbroad, but as a result required extra #includes in a variety of places since including src/repository.h no longer results in pulling in the whole world.
* Do not write tagopt configuration option on clone by defaultJameson Miller2013-05-041-0/+3
|
* remote: allow querying for refspecsCarlos Martín Nieto2013-04-201-1/+1
| | | | | | | | Introduce git_remote_{fetch,push}_refspecs() to get a list of refspecs from the remote and rename the refspec-adding functions to a less silly name. Use this instead of the vector index hacks in the tests.
* remote: handle multiple refspecsCarlos Martín Nieto2013-04-202-4/+7
| | | | | | | | | | | | | A remote can have a multitude of refspecs. Up to now our git_remote's have supported a single one for each fetch and push out of simplicity to get something working. Let the remotes and internal code know about multiple remotes and get the tests passing with them. Instead of setting a refspec, the external users can clear all and add refspecs. This should be enough for most uses, though we're still missing a querying function.
* Allow git_remote_ls after disconnecting from the remoteCarlos Martín Nieto2013-04-151-0/+27
| | | | Keep the data around until free, as expected by our own fetch example
* config: don't allow passing NULL as a value to setCarlos Martín Nieto2013-03-091-2/+2
| | | | | | Passing NULL is non-sensical. The error message leaves to be desired, though, as it leaks internal implementation details. Catch it at the `git_config_set_string` level and set an appropriate error message.
* Merge pull request #1333 from phkelley/push_optionsBen Straub2013-02-121-0/+5
|\ | | | | Add git_push_options, to set packbuilder parallelism
| * Add git_push_options, to set packbuilder parallelismPhilip Kelley2013-02-111-0/+5
| |
* | Merge pull request #1316 from ben/clone-cancelRussell Belfer2013-02-122-3/+43
|\ \ | |/ |/| Allow network operations to cancel
| * Allow all non-zero returns to cancel transfersBen Straub2013-02-051-1/+1
| |
| * Enhance test coverage for transfer cancellationBen Straub2013-02-051-0/+22
| |
| * Allow progress callback to cancel fetchBen Straub2013-02-052-3/+21
| | | | | | | | | | This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
* | Fix fetchhead tests to expect nearly-danglingBen Straub2013-02-061-1/+1
|/
* HTTP: use creds in url if availableBen Straub2013-01-311-0/+9
|
* Enhance url parsing to include passwordsBen Straub2013-01-311-0/+5
|
* Add user-from-url param to auth callbackBen Straub2013-01-311-1/+7
|
* Skip "user@" when finding hostname in urlBen Straub2013-01-301-0/+17
|
* Fix 2 bugs in online::push tests.Congyi Wu2013-01-281-3/+6
| | | | | | | - Fix stack corruption introduced in 9bccf33c due to passing pointer to local variable _cred_acquire_called. - Fix strcmp in do_verify_push_status when expected or actual push_status is NULL
* Leak cleanup in push testsPhilip Kelley2013-01-241-0/+3
|
* Update remote tips on pushJameson Miller2013-01-221-3/+100
|
* Move credential helpers to their own (optional) headerBen Straub2013-01-091-2/+3
|
* Expose stock user/pass credential utilityBen Straub2013-01-091-25/+4
|
* push: properly handle tagsMichael Schubert2013-01-091-2/+52
| | | | | Currently, push doesn't really handle tags when queueing objects. Fix it.
* tests-clar/network: remove unused CREATE_BLOBMichael Schubert2013-01-091-3/+0
|