summaryrefslogtreecommitdiff
path: root/git/test/test_remote.py
Commit message (Collapse)AuthorAgeFilesLines
* fix(remote): assert fetch respec is setSebastian Thiel2015-06-101-0/+5
| | | | | | | | | | | | It turns out we can't deal do fetches if no refspec is set as git will change the format of the fetch return values, providing less information than usual. A test was added to show that such a case will fail, and an assertion will assure we don't attempt to fetch/pull if there is no refspec for 'fetch'. Closes #296
* test: make git-daemon port configurable via envBenedikt Morbach2015-04-211-2/+3
| | | | | add a GIT_PYTHON_TEST_GIT_DAEMON_PORT to set a port other than 9418, for example for when you already have a daemon running on that port.
* fix(remote): allow to raise during push/fetchSebastian Thiel2015-04-081-2/+1
| | | | | | | | | | Do not swallow non-zero exit status during push and fetch unless we managed to parse head information. This behaviour will effetively handle cases were no work was done due to invalid refspecs or insufficient permissions. Fixes #271
* Added 'insert_kwargs_after' flag for consumption by _call_process.Sebastian Thiel2015-02-211-0/+3
| | | | | | While at it, all other invocations of .git in remote.py were reviewed Fixes #262
* This should fix the test failure on travisSebastian Thiel2015-01-301-0/+5
|
* Added test to verify we can handle fetch prunes.Sebastian Thiel2015-01-301-0/+13
| | | | | | They are just skipped. Fixes #249
* Merge branch 'master' into teeberg-masterSebastian Thiel2015-01-221-1/+15
|\ | | | | | | | | | | Need latest master to proceed with test Conflicts: doc/source/tutorial.rst
| * Fetch now deals with custom refspecs much better.Sebastian Thiel2015-01-221-1/+15
| | | | | | | | | | | | | | | | | | Even though the test-csae only verifies this spec: +refs/pull/*:refs/heads/pull/* I could locally verify that it indeed handles other ones just as well: +refs/pull/*:refs/pull/* Fixes #243
* | Fix some typosJonas Trappenberg2015-01-211-2/+2
|/
* Added advance usage examples to tutorial and made minor fixes.Sebastian Thiel2015-01-211-0/+4
| | | | | | GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
* Remote.fetch|pull() will not use poll/threads anymore as only stderr is read.Sebastian Thiel2015-01-201-0/+1
| | | | | | | This simplification should improve performance and remove issues like those in #232. NOTE: Debug code is still contained here
* Dum brute force conversion of all types.Sebastian Thiel2015-01-041-2/+3
| | | | | | However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
* Removed 'from X import *' whereever possibleSebastian Thiel2015-01-041-2/+18
|
* Bumped version, updated changelog, reduced code smellSebastian Thiel2015-01-041-2/+2
| | | | | There is more work to do though, as many imports are still incorrect. Also, there are still print statements
* Various fixes and improvementsSebastian Thiel2015-01-031-6/+7
| | | | | | | | | * GIT_PYTHON_TRACE now behaves correctly for fetch, and pull (i.e. if as_process is used) * Improved parsing of fetch head information However, there is still a messy bit that tries to bring together fetch progress information with fetch head information. Even though it works now, an alternative implementation should be attempted.
* Applied autopep8Sebastian Thiel2014-11-191-14/+15
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* pep8 linting (trailing whitespace)Antoine Musso2014-11-161-27/+27
| | | | W291 trailing whitespace
* pep8 linting (whitespace before/after)Antoine Musso2014-11-161-13/+13
| | | | | | | | | | | | | E201 whitespace after '(' E202 whitespace before ')' E203 whitespace before ':' E225 missing whitespace around operator E226 missing whitespace around arithmetic operator E227 missing whitespace around bitwise or shift operator E228 missing whitespace around modulo operator E231 missing whitespace after ',' E241 multiple spaces after ',' E251 unexpected spaces around keyword / parameter equals
* pep8 linting (blank lines expectations)Antoine Musso2014-11-161-3/+2
| | | | | | E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
* pep8 linting (whitespaces)Antoine Musso2014-11-161-83/+81
| | | | | | | | | | | W191 indentation contains tabs E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E271 multiple spaces after keyword W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file
* Support multiple refspecs in fetch.Robert Collins2014-07-031-0/+4
| | | | | | Git supports fetching many refs at once - support this in GitPython too for more efficient operations when selectively mirroring repositories.
* tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel2014-02-091-476/+476
| | | | probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
* Fetch info can now deal much better with non-default ref specs, fixes #24, #25Sebastian Thiel2011-07-041-4/+48
|
* Fixes #23Sebastian Thiel2011-07-041-424/+432
|
* Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel2010-11-251-0/+445
adjusted