summaryrefslogtreecommitdiff
path: root/git/cmd.py
Commit message (Collapse)AuthorAgeFilesLines
* fix universal_newlines TypeErrorJim Wisniewski2020-12-301-3/+4
|
* Fix exception causes in cmd.pyRam Rachum2020-06-121-4/+4
|
* Remove unnecessary check for PermissionError for Python < 3.3Harmon2020-02-081-5/+0
|
* Remove and replace compat.string_typesHarmon2020-02-081-2/+1
|
* Remove checks for Python 2 and/or 3Harmon2020-02-081-7/+0
|
* Remove and replace compat.unicodeHarmon2020-02-081-4/+2
|
* Merge branch 'fix/deepsource-issues' of https://github.com/imkaka/GitPython ↵Sebastian Thiel2019-10-291-0/+1
|\ | | | | | | into imkaka-fix/deepsource-issues
| * Merge branch 'master' into fix/deepsource-issuesAnil Khatri2019-10-231-3/+9
| |\
| * | silenced iter returns a non-iteratorAnil Khatri2019-10-231-0/+1
| | |
* | | Fix #920Victor Luzgin2019-10-281-1/+1
| |/ |/|
* | Added exception handling for WinError6Ben Thayer2019-10-231-2/+5
| |
* | Initial stab at fixing diffs involving submodule changesJJ Graham2019-10-211-1/+1
| |
* | Update cmd.pyAbhishek Kumar Singh2019-10-171-2/+1
| |
* | Fixed#731Abhishek Kumar Singh2019-10-171-0/+4
|/ | | Added check for local file url starting with `$HOME` / `~` to expand them using `os.path.expanduser`.
* removed Unnecessary pass statementPratik Anurag2019-10-151-1/+0
|
* Fix Git.transform_kwargFrantišek Nečas2019-07-291-1/+1
| | | | | | | 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>
* Added a Dockerfile that creates a clean Ubuntu Xenial test environmentJames E. King III2019-05-051-2/+5
|
* Update cmd.py, fix PermissionError issue using best practicescclauss2019-05-051-13/+9
| | | | This closes #830
* Fix setup.py and use of requirements files.James E. King III2019-05-051-1/+2
|
* Fix docstring in cmd moduleDerek2018-12-221-1/+1
|
* Exclude kwarg when NoneAndrew Rabert2018-08-051-2/+2
|
* Fix TypeError in git.execute(..., output_stream=file)Dmitry Nikulin2018-08-051-1/+1
| | | | | This fixes #619 - raise GitCommandError(not TypeError) when output_stream is set in git.execute
* 648 max_chunk_size can be now set to control output_stream behaviorPiotr Babij2018-05-181-7/+12
|
* Unnecessary generator - rewrite as a dict comprehensionHugo2018-03-181-3/+3
|
* Rewrite unnecessary dict/list/tuple calls as literalsHugo2018-03-181-4/+4
|
* Replace function call with set literalHugo2018-03-181-4/+4
|
* Drop support for EOL Python 2.6Hugo2018-03-181-3/+2
|
* Fix encoding issue with stderr_value and kill_after_timeoutPaul Belanger2017-10-051-2/+2
| | | | | | We don't properly encode our error message under python3. Signed-off-by: Paul Belanger <pabelanger@redhat.com>
* Merge branch 'master' into masterSebastian Thiel2017-09-281-8/+134
|\
| * Merge branch 'master' into adding_setup_for_git_executableSebastian Thiel2017-09-281-2/+2
| |\
| * | Minor bug fixesOdegard, Ken2017-07-261-5/+15
| | | | | | | | | | | | | | | | | | 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.
| * | Minor additional cleanupOdegard, Ken2017-07-251-27/+50
| | | | | | | | | | | | | | | | | | | | | 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 GIT_PYTHON_INITERR to GIT_PYTHON_REFRESHOdegard, Ken2017-07-131-27/+36
| | | | | | | | | | | | Renamed and cleaned up variable names.
| * | Removed remaining references to git.setup functionOdegard, Ken2017-07-131-5/+5
| | | | | | | | | | | | | | | Removed few remaining references to git.setup function (as it was renamed to refresh).
| * | Expanded ability of importOdegard, Ken2017-07-131-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | 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 ability to silence initial warningOdegard, Ken2017-07-091-4/+13
| | | | | | | | | | | | | | | Added the ability to silence the first refresh warning upon import by setting an environment variable.
| * | Moved setup function into top level __init__Odegard, Ken2017-07-091-34/+20
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Preliminary implementation of setup/refresh functionsOdegard, Ken2017-07-091-8/+75
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'master' into masterSebastian Thiel2017-09-281-2/+2
|\ \ \ | | |/ | |/|
| * | util: move expand_path from repo/base and use it in Git class initAlexis Horgix Chotard2017-08-251-2/+2
| |/
* | implemented per-call environment variable supportAnson Mansfield2017-07-191-1/+8
|/
* Spelling fixesVille Skyttä2017-03-091-1/+1
|
* Merge pull request #582 from gitpython-developers/no_devnull_openSebastian Thiel2017-02-251-1/+1
|\ | | | | fix(cmd): checking process.DEVNUL were needlessly opening `os.devnull`
| * fix(cmd): checking process.DEVNUL were needlessly opening `os.devnull`no_devnull_openKostis Anagnostopoulos2017-02-101-1/+1
| | | | | | | | | | | | | | 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')))
* | Merge pull request #555 from ankostis/cntxtmmanSebastian Thiel2017-02-251-16/+19
|\ \ | | | | | | Retrofit `repo` class as context-man to cleanup global mman on repo-delete
| * | style(cmd): pythonize cmd-args filtering for PY26, improve docstringKostis Anagnostopoulos2016-12-081-16/+19
| |/ | | | | Apply codereview comments of #541.
* | fix(cmd): don't try to use TASKKILL on linuxSebastian Thiel2017-02-251-2/+3
|/ | | | Fixes #576
* Merge pull request #541 from andy-maier/py26_fixesSebastian Thiel2016-12-081-5/+9
|\ | | | | Fixes to support Python 2.6 again.
| * Fixes to support Python 2.6 again.Andreas Maier2016-10-241-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | chore(lint): flake8Sebastian Thiel2016-12-081-0/+1
|/ | | | | | | | Interestingly only shows in particular python versions on travis. Maybe some caching effect? Locally it is reproducible easily, with the latest flake8