| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Fixes resource-leak warning on Windows Puython-3.5.3+:
D:\python-3.5.2.amd64\lib\site-packages\git\cmd.py:583: ResourceWarning:
unclosed file <_io.BufferedWriter name='nul'>
else getattr(subprocess, 'DEVNULL', open(os.devnull, 'wb')))
|
| |
|
|\
| |
| | |
Doc fix: Using camellcase package name in "pip install" command
|
|/ |
|
|\
| |
| | |
DOC: minor typo
|
|/ |
|
|
|
|
|
| |
Should have paid more attention to the test-failure before
pushing the fix.
|
| |
|
|
|
|
| |
Fixes #562
|
|
|
|
|
|
|
| |
The handling is similar, but the error message makes clear
what is happening, and what can be done to handle such a case.
Related to #561
|
| |
|
| |
|
|
|
|
| |
Fixes #550
|
|
|
|
|
|
|
| |
As it does not appear to be the case.
See https://github.com/gitpython-developers/GitPython/issues/547#issuecomment-257270026
[skip ci]
|
|\
| |
| | |
Fixes to support Python 2.6 again.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
|\ \
| | |
| | | |
Don't change the meaning of string literals
|
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Interestingly only shows in particular python versions
on travis.
Maybe some caching effect?
Locally it is reproducible easily, with the latest flake8
|
|/
|
|
| |
Fixes #545
|
|\
| |
| |
| | |
ankostis-win_mmap
|
| |
| |
| |
| |
| |
| |
| | |
Now 2 more TCs pass in Windows:
+ TestRepo.test_file_handle_leaks()
+ TestObjDbPerformance.test_random_access()
See https://github.com/gitpython-developers/smmap/pull/30
|
| |
| |
| |
| | |
Obviously it is not needed anymore, or nothing is worse without this
monkeypatch.
|
| |
| |
| |
| | |
Vastly improved windows support and a few bugfixes.
|
|\ \
| |/
|/| |
FIX #535: expand also GIT_DIR var on Repo-construction
|
| |
| |
| |
| | |
FIX #535 according to Byron's comment:
https://github.com/gitpython-developers/GitPython/issues/535#issuecomment-255522529
|
| |\
| |/
|/| |
|
|\ \
| | |
| | |
| | | |
ankostis-cygwin
|
|\ \ \
| | | |
| | | | |
Fix some typos
|
|/ / / |
|
| | |\
| |/ /
| | |
| | |
| | |
| | |
| | | |
Conflicts:
git/repo/base.py
git/repo/fun.py
git/test/test_submodule.py
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
+ Expansion of paths also `osp.normalize()` them.
+ Make Repo-fields --> class-fields to avoid initializations on
construct.
+ Explain and rename `git.repo.fun.find_git_dir()` is for submodules
(`find_submodule_git_dir()`).
|
| |/
|/|
| |
| | |
+ Ignore "empty" GIT_DIR vars.
+ Improve documentation on the constructor `path` parameter.
|
|\ \
| | |
| | | |
Allow for setting git generic options, persisted across subcommand calls.
|
| | | |
|
| | | |
|
|/ / |
|
| | |
|
| | |
|
| | |
|
| |\
| |/
|/| |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
[skip ci]
|
| |
| |
| |
| |
| |
| | |
Also depend on gitdb2 to regain control and allow
improvements.
[skip ci]
|
| |
| |
| |
| |
| |
| |
| | |
Just to allow uploading a more recent one, that ideally
works now.
[skip ci]
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
+ Decygpath sm's `.git` file contents.
+ Polish another path in `git add`; actually no main-code changes, just
a replace \-->/ on a relative(!) path to make cygwin-git to work.
- REGRESSION `test_git_submodules_and_add_sm_with_new_commit` asks for
user/email settings.
- Cygwin TCs failing:
- PY2: err: 2, fail: 1
- PY3: err: 2, fail: 1
|
| |
| |
| |
| | |
+ Use environment-markers in requirement files (see
http://stackoverflow.com/a/33451105/548792).
|
| | |
|
| | |
|