summaryrefslogtreecommitdiff
path: root/git/test
Commit message (Collapse)AuthorAgeFilesLines
* fix whitespace violationSebastian Thiel2018-07-151-1/+0
|
* Update test_docs.pyMark2018-07-151-17/+17
| | | Using "import as" is normally a time saver but for usability of the documentation, please consider removing osp and join with fully qualified calls for better snippet readability.
* Allow pathlib.Path in Repo.__init__oldPadavan2018-07-151-0/+8
|
* Add change in type supportAurélien Matouillot2018-05-193-0/+38
|
* Get correcly rename change_type.Aurélien Matouillot2018-05-191-0/+2
| | | | Also store the rename score
* 648 max_chunk_size can be now set to control output_stream behaviorPiotr Babij2018-05-181-0/+17
|
* Avoid from_timestamp() function to raise an exception when the offset is ↵ishepard2018-04-041-2/+16
| | | | | | greater or lower than 24 hours. Add tests that exercise the new behaviour
* git: index: base: use os.path.relpathRuslan Kuprieiev2018-04-041-0/+15
| | | | | | Fixes #743 Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
* github -> GitHubHugo2018-03-182-2/+2
|
* Use automatic formattersHugo2018-03-181-2/+2
|
* Unnecessary generator - rewrite as a set comprehensionHugo2018-03-183-4/+4
|
* Unnecessary generator - rewrite as a list comprehensionHugo2018-03-182-3/+3
|
* Rewrite unnecessary dict/list/tuple calls as literalsHugo2018-03-187-11/+11
|
* Replace function call with set literalHugo2018-03-183-3/+3
|
* Drop support for EOL Python 2.6Hugo2018-03-189-52/+10
|
* Merge branch 'bf-includes' of https://github.com/yarikoptic/GitPython into ↵Sebastian Thiel2017-12-114-3/+42
|\ | | | | | | yarikoptic-bf-includes
| * BF: wrap map into list, since iterator is not well digested by GitConfigParserYaroslav Halchenko2017-11-271-1/+1
| |
| * BF: process included files before the restYaroslav Halchenko2017-11-274-3/+42
| |
* | BF(WIN): where could report multiple hits, so choose firstYaroslav Halchenko2017-11-281-1/+1
| |
* | RF: use HIDE_WINDOWS_KNOWN_ERRORS instead of is_win to skip hooks testsYaroslav Halchenko2017-11-281-1/+1
| |
* | BF(WIN): use where instead of which while looking for gitYaroslav Halchenko2017-11-281-1/+4
| |
* | RF(TST): skip all tests dealing with hooks on windowsYaroslav Halchenko2017-11-281-0/+1
| |
* | RF: no "need" for custom shebang on windows since just does not workYaroslav Halchenko2017-11-281-3/+1
| |
* | RF(+BF?): refactor hooks creation in a test, and may be make it compat with ↵Yaroslav Halchenko2017-11-281-32/+39
| | | | | | | | windows
* | RF: last of flake8 fails - avoid using temp variable in a testYaroslav Halchenko2017-11-281-2/+1
| |
* | BF(PY26): {} -> {0}, i.e. explicit index for .format()Yaroslav Halchenko2017-11-271-2/+2
| |
* | RF: primarily flake8 lints + minor RF to reduce duplication in PATHEXTYaroslav Halchenko2017-11-273-31/+31
|/ | | | | I did keep some "bare" except with catch all Exception: , while tried to disable flake8 complaints where clearly all exceptions are to be catched
* Merge pull request #697 from cblegare/masterSebastian Thiel2017-11-191-1/+11
|\ | | | | Remove trailing slash on drive path
| * Remove trailing slash on drive pathCharles Bouchard-Légaré2017-11-161-1/+11
| |
* | Merge pull request #693 from satahippy/masterSebastian Thiel2017-11-191-29/+85
|\ \ | |/ |/| commit-msg hook support
| * IndexFile.commit() now runs pre-commit and post-commit and commit-msg hooks.satahippy2017-10-301-29/+85
| |
* | Converting path in clone and clone_from to str before any other operation in ↵Mikuláš Poul2017-10-071-0/+14
|/ | | | case eg pathlib.Path is passed
* Keeping env values passed to `clone_from`Piotr Babij2017-09-301-0/+9
|
* Merge branch 'master' into masterSebastian Thiel2017-09-281-0/+9
|\
| * Merge branch 'master' into adding_setup_for_git_executableSebastian Thiel2017-09-282-2/+4
| |\
| * | Renamed refresh to setup and removed alias function & added unittestOdegard, Ken2017-07-091-0/+9
| | | | | | | | | | | | | | | | | | Renamed to simplify and avoid issue with nose tests trying to use `setup` as a setup for testing. Unittest implements basic test for refreshing with a bad git path versus a good git path.
* | | Merge branch 'master' into masterSebastian Thiel2017-09-282-2/+4
|\ \ \ | | |/ | |/|
| * | Merge pull request #654 from vathpela/worktreesSebastian Thiel2017-09-281-0/+2
| |\ \ | | | | | | | | worktrees: make non-packed refs also work correctly.
| | * | worktrees: make non-packed refs also work correctly.Peter Jones2017-08-221-0/+2
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out aec58a9 did the right thing for /packed/ refs, but didn't work correctly on /unpacked/ refs. So this patch gives unpacked refs the same treatment. Without the fix here, the test added will cause this traceback: ====================================================================== ERROR: Check that we find .git as a worktree file and find the worktree ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pjones/devel/github.com/GitPython/git/test/lib/helper.py", line 92, in wrapper return func(self, path) File "/home/pjones/devel/github.com/GitPython/git/test/test_repo.py", line 938, in test_git_work_tree_dotgit self.assertIsInstance(repo.heads['aaaaaaaa'], Head) File "/home/pjones/devel/github.com/GitPython/git/util.py", line 893, in __getitem__ raise IndexError("No item found with id %r" % (self._prefix + index)) IndexError: No item found with id 'aaaaaaaa' Woops. Things I've learned: - test_remote doesn't work currently if you start on a branch. I think it never did? - Because of 346424da, all *sorts* of stuff in the test suite doesn't work if you name your development branch "packed-refs" (This seems like a bug...) Signed-off-by: Peter Jones <pjones@redhat.com>
| * | Fix test_docsSebastian Thiel2017-09-281-2/+2
| |/ | | | | | | It's not portable to test for a secific author name
* | test if it accepts environment variables in commandsAnson Mansfield2017-07-192-0/+15
|/
* Update changelog and improve docs on skipped testSebastian Thiel2017-07-011-1/+2
| | | | [skip ci]
* Try to ignore test on windows as it fails for the wrong reasonsSebastian Thiel2017-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Here is the error log we see: ====================================================================== ERROR: test_git_submodules_and_add_sm_with_new_commit (git.test.test_submodule.TestSubmodule) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\projects\gitpython\git\test\lib\helper.py", line 92, in wrapper return func(self, path) File "C:\projects\gitpython\git\test\test_submodule.py", line 709, in test_git_submodules_and_add_sm_with_new_commit smm.git.commit(m="new file added") File "C:\projects\gitpython\git\cmd.py", line 425, in <lambda> return lambda *args, **kwargs: self._call_process(name, *args, **kwargs) File "C:\projects\gitpython\git\cmd.py", line 877, in _call_process return self.execute(call, **exec_kwargs) File "C:\projects\gitpython\git\cmd.py", line 688, in execute raise GitCommandError(command, status, stderr_value, stdout_value) GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git commit -m new file added stderr: ' *** Please tell me who you are.
* Maybe work around AppVeyor setting a bad email?Peter Jones2017-07-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the submodule tests says: Traceback (most recent call last): File "C:\projects\gitpython\git\test\lib\helper.py", line 92, in wrapper return func(self, path) File "C:\projects\gitpython\git\test\test_submodule.py", line 706, in test_git_submodules_and_add_sm_with_new_commit smm.git.commit(m="new file added") File "C:\projects\gitpython\git\cmd.py", line 425, in <lambda> return lambda *args, **kwargs: self._call_process(name, *args, **kwargs) File "C:\projects\gitpython\git\cmd.py", line 877, in _call_process return self.execute(call, **exec_kwargs) File "C:\projects\gitpython\git\cmd.py", line 688, in execute raise GitCommandError(command, status, stderr_value, stdout_value) git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git commit -m new file added stderr: ' *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'appveyor@APPVYR-WIN.(none)')' Clearly this is failing because (none) isn't a valid TLD, but I figure I'll try to set a fake value and see if that works around it.
* Repo: handle worktrees betterPeter Jones2017-07-012-12/+51
| | | | | | | | | | | | | This makes Repo("foo") work when foo/.git is a file of the form created by "git worktree add", i.e. it's a text file that says: gitdir: /home/me/project/.git/worktrees/bar and where /home/me/project/.git/ is the nominal gitdir, but /home/me/project/.git/worktrees/bar has this worktree's HEAD etc and a "gitdir" file that contains the path of foo/.git . Signed-off-by: Peter Jones <pjones@redhat.com>
* Add base class for package exceptions.Konstantin Popov2017-05-291-0/+27
|
* Python 3.6 invalid escape sequence deprecation fixesVille Skyttä2017-04-096-9/+9
| | | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
* Spelling fixesVille Skyttä2017-03-096-7/+7
|
* Add a fixture to test incremental blame output for git 2.11.1+George Hickman2017-03-072-18/+53
|
* chore(flake): satisfy linterSebastian Thiel2017-02-251-2/+0
|