aboutsummaryrefslogtreecommitdiff
path: root/git/test/test_submodule.py
AgeCommit message (Collapse)Author
2015-01-17Submodule.remove() now seems to work properly, nearly all tests are back.Sebastian Thiel
This also means that now we seem to be able to properly handle .git files in submodules Related to #233
2015-01-17Made sure dry-run is properly implemented in Submodule.remove()Sebastian Thiel
The root-submodule test is still failing though, this time even earlier than before
2015-01-17Submodule.remove() now deals with .git files correctly.Sebastian Thiel
A simple test verifies this at least.
2015-01-17Assured Submodule.(update|move) are dealing with .git files appropriately.Sebastian Thiel
However, a simple test-case still fails for reasons not yet understood. There is more to be fixed here - .remove() still fails.
2015-01-16Implemented more tests and made use of .git files when adding submodulesSebastian Thiel
There is some more work to do, as renames and updates still have to be adjusted accordinlgy. Relates #233
2015-01-15Fixed previously failing testSebastian Thiel
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 ... .
2015-01-15Verified that it apparently is impossible to add empty submodules using ↵Sebastian Thiel
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
2015-01-15Submodule.add() can now handle absolute module paths in agreement to the doc ↵Sebastian Thiel
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
2015-01-15Added the first submodule will no longer cause an IOError.Sebastian Thiel
This is verified by the respective test. Fixes #117
2015-01-06test_submodule worksSebastian Thiel
2015-01-06test_repo worksSebastian Thiel
2015-01-04Dum brute force conversion of all types.Sebastian Thiel
However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
2015-01-04Removed 'from X import *' whereever possibleSebastian Thiel
2015-01-04Bumped version, updated changelog, reduced code smellSebastian Thiel
There is more work to do though, as many imports are still incorrect. Also, there are still print statements
2015-01-03Fixed all remaining non-performance testsSebastian Thiel
* 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.
2014-11-19Applied autopep8Sebastian Thiel
Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
2014-11-16pep8 linting (trailing whitespace)Antoine Musso
W291 trailing whitespace
2014-11-16pep8 linting (double spaces before comment)Antoine Musso
E261 at least two spaces before inline comment
2014-11-16pep8 linting (whitespace before/after)Antoine Musso
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
2014-11-16pep8 linting (blank lines expectations)Antoine Musso
E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
2014-11-16pep8 linting (whitespaces)Antoine Musso
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
2014-02-09tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel
probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
2011-06-13test_submodule doesn't assume latest version of gitdb anymoreSebastian Thiel
2011-06-13fixed submodule test to work on windowsSebastian Thiel
2011-06-13test_submodule: Will now load everything into memory if smmap is present, to ↵Sebastian Thiel
help the submodule test to work even on windows
2011-06-10Fixed submodule tests to go with either the old or the new version of gitdbSebastian Thiel
2011-06-07Fixed submodule test. Just a tiny thingSebastian Thiel
2010-12-01Submodule tests are functional once again.Sebastian Thiel
remote: Fixed bug that was caused by the unchecked deletion of an uncached attribute which did not necessarily exist
2010-12-01Fixed import of gitdb, keeping changed gitdb commit so that the submodule ↵Sebastian Thiel
tests may work. Switched gitdb submodule to new github url
2010-11-25Fixed all testcasesSebastian Thiel
2010-11-25Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel
adjusted