summaryrefslogtreecommitdiff
path: root/git/test/test_submodule.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Impemented keep_going flag for `Submodule.update()`Sebastian Thiel2015-01-201-2/+5
| | | | Fixes #50
* Submodule.parent_commit() now automatically points to repo.head unless it ↵Sebastian Thiel2015-01-201-6/+4
| | | | | | | | was set before. That way, you don't always have to keep the parent commit uptodate when changing the repo, which can lead to errors which are hard to debug and make no sense to the user, who previously never set parent_commit (yet it matters thanks to the cache).
* Greatly improved possible safety of Submodule.update(), which is used by ↵Sebastian Thiel2015-01-201-30/+83
| | | | | | | | | | | | default. Previously, the implementation would gladly reset new commits in submodules, and/or reset a dirty working tree. Now the new force_reset/force flag has to be specified explicitly to get back to the old behaviour. All submodule tests except for one are working.
* Submodule.move() will auto-rename the submodule if the name was equal to the ↵Sebastian Thiel2015-01-191-1/+4
| | | | | | path Fixes #238
* Implemented Submodule.rename()Sebastian Thiel2015-01-191-0/+23
| | | | | | A test verifies it's truly working. Related to #238
* Submodule.move() fixed to deal with 'non-gitfile' clones appropriately.Sebastian Thiel2015-01-191-4/+14
| | | | | | | Improved a test to assure multiple update(init=False|True) calls don't throw. Fixes #93
* Basic submodule tests are working once again !Sebastian Thiel2015-01-191-11/+15
| | | | | | | | After all, it was easier than expected. It seems that previous assertions the test made should have never been true to begin with. Thus we might have improved the test thanks to our improved implementation. Fixes #233
* Submodule.remove() now seems to work properly, nearly all tests are back.Sebastian Thiel2015-01-171-4/+13
| | | | | | This also means that now we seem to be able to properly handle .git files in submodules Related to #233
* Made sure dry-run is properly implemented in Submodule.remove()Sebastian Thiel2015-01-171-4/+7
| | | | | The root-submodule test is still failing though, this time even earlier than before
* Submodule.remove() now deals with .git files correctly.Sebastian Thiel2015-01-171-4/+6
| | | | A simple test verifies this at least.
* Assured Submodule.(update|move) are dealing with .git files appropriately.Sebastian Thiel2015-01-171-0/+14
| | | | | However, a simple test-case still fails for reasons not yet understood. There is more to be fixed here - .remove() still fails.
* Implemented more tests and made use of .git files when adding submodulesSebastian Thiel2015-01-161-3/+45
| | | | | | | There is some more work to do, as renames and updates still have to be adjusted accordinlgy. Relates #233
* Fixed previously failing testSebastian Thiel2015-01-151-2/+3
| | | | | | It actually revealed a bug in the implementation of Submodule.add, which just showed in python 3 for the wrong reasons. Thankfully, failing tests after all allowed to get this issue fixed ... .
* Verified that it apparently is impossible to add empty submodules using ↵Sebastian Thiel2015-01-151-4/+20
| | | | | | | | | | | | | | | | | | | git-python. This is the case with `git submodule add` as well. This makes sense as an empty git repository doesn't have a commit, which needs to be specified as SHA in the parent repositories tree entry for the respective submodule. When manually adding the empty submodule to the .gitmodules file, git-python will throw another error related to the inability to find the submodule in the index. Even if an iteration would be possible, git-python would now throw a BadName exception, which clearly indicates that the 'HEAD' revision is invalid (as it doesn't point to any commit). Fixes #152 Fixes #105
* Submodule.add() can now handle absolute module paths in agreement to the doc ↵Sebastian Thiel2015-01-151-3/+11
| | | | | | | | | | string. Previously, it would say it can handle absolute module paths, but didn't actually do so. A test-case was improved to check for this case. Fixes #161
* Added the first submodule will no longer cause an IOError.Sebastian Thiel2015-01-151-0/+7
| | | | | | This is verified by the respective test. Fixes #117
* test_submodule worksSebastian Thiel2015-01-061-1/+1
|
* test_repo worksSebastian Thiel2015-01-061-11/+27
|
* Dum brute force conversion of all types.Sebastian Thiel2015-01-041-1/+2
| | | | | | 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/+5
|
* Bumped version, updated changelog, reduced code smellSebastian Thiel2015-01-041-3/+1
| | | | | There is more work to do though, as many imports are still incorrect. Also, there are still print statements
* Fixed all remaining non-performance testsSebastian Thiel2015-01-031-0/+3
| | | | | | | * travis configuration adjusted to hopefully work better than before Performance traversal still fails when using git-python as standard repository. It naturally wants a larger one. On travis these tests are skipped though.
* Applied autopep8Sebastian Thiel2014-11-191-4/+6
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* pep8 linting (trailing whitespace)Antoine Musso2014-11-161-12/+12
| | | | W291 trailing whitespace
* pep8 linting (double spaces before comment)Antoine Musso2014-11-161-3/+3
| | | | E261 at least two spaces before inline comment
* pep8 linting (whitespace before/after)Antoine Musso2014-11-161-4/+4
| | | | | | | | | | | | | 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-7/+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-101/+100
| | | | | | | | | | | 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
* tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel2014-02-091-541/+541
| | | | probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
* test_submodule doesn't assume latest version of gitdb anymoreSebastian Thiel2011-06-131-1/+2
|
* fixed submodule test to work on windowsSebastian Thiel2011-06-131-2/+3
|
* test_submodule: Will now load everything into memory if smmap is present, to ↵Sebastian Thiel2011-06-131-0/+14
| | | | help the submodule test to work even on windows
* Fixed submodule tests to go with either the old or the new version of gitdbSebastian Thiel2011-06-101-5/+6
|
* Fixed submodule test. Just a tiny thingSebastian Thiel2011-06-071-0/+3
|
* Submodule tests are functional once again.Sebastian Thiel2010-12-011-1/+1
| | | | remote: Fixed bug that was caused by the unchecked deletion of an uncached attribute which did not necessarily exist
* Fixed import of gitdb, keeping changed gitdb commit so that the submodule ↵Sebastian Thiel2010-12-011-2/+2
| | | | | | tests may work. Switched gitdb submodule to new github url
* Fixed all testcasesSebastian Thiel2010-11-251-3/+4
|
* Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel2010-11-251-0/+546
adjusted