| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
into imkaka-fix/deepsource-issues
|
| |\ |
|
| | | |
|
| |/
|/| |
|
| | |
|
| | |
|
| | |
|
|/
|
| |
Added check for local file url starting with `$HOME` / `~` to expand them using `os.path.expanduser`.
|
| |
|
|
|
|
|
|
|
| |
Kwargs were not transformed correctly if a value was set to 0 due to
wrong if condition.
Signed-off-by: František Nečas <fifinecas@seznam.cz>
|
| |
|
|
|
|
| |
This closes #830
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This fixes #619 - raise GitCommandError(not TypeError) when output_stream is set
in git.execute
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
We don't properly encode our error message under python3.
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Added tilde expansion as part of the refresh function. Added python
version check such that we properly capture PermissionError in Python
>=3 and OSError in Python <3.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Added additional information in the import warning/error that tells the
user how to silence the warning/error. Also added a GIT_OK variable
that allows for a quick check whether the refresh has succeeded instead
of needing to test an actual git command.
|
| | |
| | |
| | |
| | | |
Renamed and cleaned up variable names.
|
| | |
| | |
| | |
| | |
| | | |
Removed few remaining references to git.setup function (as it was
renamed to refresh).
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Renamed GIT_PYTHON_NOWARN to GIT_PYTHON_INITERR and added values for
quiet import, warning import, and raise import. These respectively mean
that no message or error is printed if git is non-existent, a plain
warning is printed but the import succeeds, and an ImportError
exception is raised.
|
| | |
| | |
| | |
| | |
| | | |
Added the ability to silence the first refresh warning upon import by
setting an environment variable.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Discovered that the remote module also relies on the git executable as
such it also needs to be “refreshed” anytime the git executable is
updated or changed. This was best solved by moving the setup function
into the top level __init__ where the setup simply calls
git.cmd.Git.refresh and git.remote.FetchInfo.refresh.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Added one function (setup) and an alias (refresh simply calls setup).
These functions give the developer one more way to configure the git
executable path. This also allows the user to interactively adjust the
git executable configured during runtime as these functions dynamically
update the executable path for the entire git module.
|
|\ \ \
| | |/
| |/| |
|
| |/ |
|
|/ |
|
| |
|
|\
| |
| | |
fix(cmd): checking process.DEVNUL were needlessly opening `os.devnull`
|
| |
| |
| |
| |
| |
| |
| | |
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')))
|
|\ \
| | |
| | | |
Retrofit `repo` class as context-man to cleanup global mman on repo-delete
|
| |/
| |
| | |
Apply codereview comments of #541.
|
|/
|
|
| |
Fixes #576
|
|\
| |
| | |
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).
|
|/
|
|
|
|
|
|
| |
Interestingly only shows in particular python versions
on travis.
Maybe some caching effect?
Locally it is reproducible easily, with the latest flake8
|