summaryrefslogtreecommitdiff
path: root/git/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support to pass clone options that can be repeated multiple timesSteven Whitman2019-07-061-0/+16
|
* Satisfy flake8Sebastian Thiel2019-07-061-1/+2
| | | | | Oh how much I dislike linters that don't format, and a lack of formatter integration into my IDE :(.
* Fix regex to support empty email addresses i.e. 'name <>'Sebastian Thiel2019-07-061-0/+5
| | | | Fixes #833
* Merge branch 'multi-value' of https://github.com/ajdavis/GitPython into ↵Sebastian Thiel2019-07-062-1/+115
|\ | | | | | | ajdavis-multi-value
| * Use items and items_all correctlyA. Jesse Jiryu Davis2019-01-211-1/+11
| | | | | | | | #717
| * Support multiple git config values per optionA. Jesse Jiryu Davis2019-01-202-0/+104
| | | | | | | | Solves #717
* | Resolve test incompatibility with git v2.21.0James E. King III2019-05-051-1/+1
| | | | | | | | This fixes #869
* | Fix test-only issue with git 2.20 or later handling a clobbered tagJames E. King III2019-03-151-2/+8
|/
* Respect _common_dir when finding repository config fileLuc Ritchie2018-10-131-0/+5
| | | | | Among other things, remotes are now correctly identified when in a separate worktree.
* Exclude kwarg when NoneAndrew Rabert2018-08-051-1/+3
|
* Add test that raises TypeError in git.execute(..., output_stream=file)Dmitry Nikulin2018-08-051-0/+6
|
* 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>