aboutsummaryrefslogtreecommitdiff
path: root/git/objects
AgeCommit message (Collapse)Author
2020-02-08Remove and replace compat.string_typesHarmon
2020-02-08Remove checks for Python 2 and/or 3Harmon
2020-02-08Remove and replace compat.xrangeHarmon
2020-02-08Remove and replace compat.bchrHarmon
2020-02-08Remove compat.byte_ordHarmon
2019-12-29Added parsing for '@1400000000 +0000' date format as used by git commit hooks.Dries
2019-10-23Merge branch 'fix/deepsource-issues' of github.com:imkaka/GitPython into ↵Anil Khatri
fix/deepsource-issues
2019-10-23resolved all minor issues arised by last fix patchAnil Khatri
2019-10-23Merge branch 'master' into fix/deepsource-issuesAnil Khatri
2019-10-23fix Loop variable used outside the loopAnil Khatri
2019-10-19Fix pickling of tzoffsetUwe L. Korn
Fixes #650
2019-10-15removed Unnecessary “else” after “return”Pratik Anurag
2019-10-15removed Unnecessary “else” after “return”Pratik Anurag
2019-10-15removed trailing whitespacesPratik Anurag
2019-10-15removed trailing whitespacesPratik Anurag
2019-10-15removed trailing whitespacesPratik Anurag
2019-10-15renamed unused variablesPratik Anurag
2019-10-15renamed unused variablesPratik Anurag
2019-10-15changed unused variables assingmentPratik Anurag
2019-09-16fix decoding problemishepard
2019-09-10Fix #889: Add DeepSource config and fix some major issuesMohit Solanki
2019-07-20Skip on keyerrorSantos Gallegos
2019-07-06Don't assume there is a tag author in tagsSebastian Thiel
Fixes #842
2019-03-15Update commit.py constructor docstringDavid Host
Fixes issue #806: Commit requires author parameter to be of Actor type, not string.
2018-10-21The proper way is return, not raise StopIterationMichael Käufl
See PEP 479[1] which is part of Python 3.7[2]. [1]: https://www.python.org/dev/peps/pep-0479/ [2]: https://docs.python.org/3/whatsnew/3.7.html#changes-in-python-behavior
2018-04-04Avoid from_timestamp() function to raise an exception when the offset is ↵ishepard
greater or lower than 24 hours. Add tests that exercise the new behaviour
2018-03-18Rewrite unnecessary dict/list/tuple calls as literalsHugo
2018-03-18Drop support for EOL Python 2.6Hugo
2017-11-16Remove trailing slash on drive pathCharles Bouchard-Légaré
2017-10-01Store submodule nameJohn Kirkham
2017-09-19BF: use get, not casting get_value while dealing with submodule path/url etcYaroslav Halchenko
2017-03-09Spelling fixesVille Skyttä
2017-02-02Fix git.Commit docs typoReuben Sutton
2016-12-08Merge pull request #541 from andy-maier/py26_fixesSebastian Thiel
Fixes to support Python 2.6 again.
2016-12-08chore(lint): flake8Sebastian Thiel
Interestingly only shows in particular python versions on travis. Maybe some caching effect? Locally it is reproducible easily, with the latest flake8
2016-12-08fix(submodule): don't fail if tracking branch can't be setupSebastian Thiel
Fixes #545
2016-10-24Fixes to support Python 2.6 again.Andreas Maier
Details: - Added Python 2.6 again to .travis.yml (it was removed in commit 4486bcb). - Replaced the use of dictionary comprehensions in `git/cmd.py` around line 800 with the code before that change (in commit 25a2ebf). Reason: dict comprehensions were introduced only in Python 2.7. - Changed the import source for `SkipTest` and `skipIf` from `unittest.case` to first trying `unittest` and upon ImportError from `unittest2`. This was done in `git/util.py` and in several testcases. Reason: `SkipTest` and `skipIf` were introduced to unittest only in Python 2.7, and `unittest2` is a backport of `unittest` additions to Python 2.6. - In git/test/lib/helper.py, fixed the definition of `assertRaisesRegex` to work on py26. - For Python 2.6, added the `unittest2` dependency to `requirements.txt` and changed `.travis.yml` to install `unittest2`. Because git/util.py uses SkipTest from unittest/unittest2, the dependency could not be added to `test-requirements.txt`. - Fixed an assertion in `git/test/test_index.py` to also allow a Python 2.6 specific exception message. - In `is_cygwin_git()` in `git/util.py`, replaced `check_output()` with `Popen()`. It was added in Python 2.7. - Enabled Python 2.6 for Windows: - Added Python 2.6 for MINGW in .appveyor.yml. - When defining `PROC_CREATIONFLAGS` in `git/cmd.py`, made use of certain win32 and subprocess flags that were introduced in Python 2.7, dependent on whether we run on Python 2.7 or higher. - In `AutoInterrupt.__del__()` in `git/cmd.py`, allowed for `os` not having `kill()`. `os.kill()` was added for Windows in Python 2.7 (For Linux, it existed in Python 2.6 already).
2016-10-22Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel
ankostis-cygwin
2016-10-20Fix some typosSantiago Castro
2016-10-16Merge with #532, fix unicode filenames with escapesurogatesKostis Anagnostopoulos
2016-10-16fix(surrogateescape): enable on py2, fix testsSebastian Thiel
2016-10-16fix(unicode): use surrogateescape in bytes.decodeSebastian Thiel
That way, we will try to decode as default encoding (usually utf-8), but allow ourselves to simply keep bytes that don't match within the resulting unicode string. That way, we allow for lossless decode/encode cycles while still assuring that decoding never fails. NOTE: I was too lazy to create a test that would verify it, but manually executed https://github.com/petertodd/gitpython-unicode-error. fixes #532
2016-10-16src: reduce needless deps to `gitdb.util`Kostis Anagnostopoulos
2016-10-16src: import os.path as ospKostis Anagnostopoulos
2016-10-12config, #525: polish more config-urlsKostis Anagnostopoulos
2016-10-11FIX #526: Do not depend on test-sourcesKostis Anagnostopoulos
+ Move `HIDE_WINDOWS_KNOWN_ERRORS` flag from `git.test.lib.helper-->git.util`; regular modules in main-sources folder also depend on that flag. + Use unittest.SkipTest instead of from non-standard `nose` lib.
2016-10-04config: FIX regression by prev commit "wrap all conf..."Kostis Anagnostopoulos
+ Bug appeared as last 5 TCs (test_commit & test_stream) said: OSError: [WinError 6] The handle is invalid
2016-10-04io: Wrap (probably) allconfig_writers in `with` blocksKostis Anagnostopoulos
2016-10-04src: No PyDev warningsKostis Anagnostopoulos
+ Mark all unused vars and other non-pep8 (PyDev) warnings + test_utils: + enable & fix forgotten IterableList looped path. + unittestize all assertions. + remote: minor fix progress dispatching unknown err-lines
2016-10-04hidden win-errs: Let leaking TCs run till end, then hideKostis Anagnostopoulos
+ Detect code breaking the body of TCs eventually hidden win-errors by raising SkipTest ALAP. + submodule.base.py: import classes from `git.objects` instead of `utils`. + had to ++ ulimit 100->110 for the extra code tested (more leaks :-) + Centralize is_win detection.