summaryrefslogtreecommitdiff
path: root/git/cmd.py
Commit message (Collapse)AuthorAgeFilesLines
* Dum brute force conversion of all types.Sebastian Thiel2015-01-041-3/+3
| | | | | | However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
* initial set of adjustments to make (most) imports work.Sebastian Thiel2015-01-041-6/+8
| | | | More to come, especially when it's about strings
* Replaced ordered dict with standard version; used logging moduleSebastian Thiel2015-01-041-4/+7
| | | | All performance tests still print to stderr, but do so in a py3 compatible way
* Bumped version, updated changelog, reduced code smellSebastian Thiel2015-01-041-7/+9
| | | | | There is more work to do though, as many imports are still incorrect. Also, there are still print statements
* Various fixes and improvementsSebastian Thiel2015-01-031-1/+1
| | | | | | | | | * GIT_PYTHON_TRACE now behaves correctly for fetch, and pull (i.e. if as_process is used) * Improved parsing of fetch head information However, there is still a messy bit that tries to bring together fetch progress information with fetch head information. Even though it works now, an alternative implementation should be attempted.
* Applied autopep8Sebastian Thiel2014-11-191-28/+30
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* Copy environment for subprocess executionDarragh Bailey2014-11-171-1/+3
| | | | | | | | | | Git utilizes multiple environment variables to control various behaviours. Make sure to set LC_MESSAGES on a copy of the environment instead of discarding any variables that may be set by the user or default shell environment such as EDITOR. Add test to assert that when overriding GIT_EDITOR via os.environ that the modified value will be picked up by and git commands called.
* Merge branch 'patch-1' of https://github.com/boppreh/GitPython into ↵Sebastian Thiel2014-11-171-1/+3
|\ | | | | | | | | | | | | | | boppreh-patch-1 Adjusted patch to only run git command in shell mode on windows. Conflicts: git/cmd.py
| * Avoid spawning console windows when running from .pywBoppreH2013-10-171-0/+1
| | | | | | By adding `shell=True,` to the list of Popen parameters, we avoid spawning console windows when scripts call this method from a windowless (.pyw) Python script.
* | Merge pull request #205 from hashar/rm-unicode-bomSebastian Thiel2014-11-171-1/+1
|\ \ | | | | | | Remove Byte Order Mark from git/cmd.py
| * | Remove Byte Order Mark from git/cmd.pyAntoine Musso2014-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Unicode Byte Order Mark is usually unwanted. git/cmd.py had one inserted in 2008 by cf37099e, a commit that fix a Windows related issue which indicate the file has most probably be edited with a text editor that automatically insert the Byte Order Mark. Remove the BOM from git/cmd.py For details aboute the BOM: https://en.wikipedia.org/wiki/Byte_order_mark
* | | pep8 linting (trailing whitespace)Antoine Musso2014-11-161-40/+40
| | | | | | | | | | | | W291 trailing whitespace
* | | pep8 linting (double spaces before comment)Antoine Musso2014-11-161-2/+2
| | | | | | | | | | | | E261 at least two spaces before inline comment
* | | pep8 linting (whitespace before/after)Antoine Musso2014-11-161-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | E201 whitespace after '(' E202 whitespace before ')' E203 whitespace before ':' E225 missing whitespace around operator E226 missing whitespace around arithmetic operator E227 missing whitespace around bitwise or shift operator E228 missing whitespace around modulo operator E231 missing whitespace after ',' E241 multiple spaces after ',' E251 unexpected spaces around keyword / parameter equals
* | | pep8 linting (blank lines expectations)Antoine Musso2014-11-161-3/+4
| | | | | | | | | | | | | | | | | | E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
* | | pep8 linting (whitespaces)Antoine Musso2014-11-161-71/+71
|/ / | | | | | | | | | | | | | | | | | | | | W191 indentation contains tabs E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E271 multiple spaces after keyword W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file
* | Merge branch 'sf-master' of https://github.com/johnsca/GitPython into ↵Sebastian Thiel2014-11-151-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | johnsca-sf-master Conflicts: git/cmd.py git/objects/commit.py git/objects/fun.py git/objects/util.py git/remote.py git/repo/base.py git/test/lib/helper.py git/test/test_commit.py git/test/test_fun.py git/util.py
| * | [#5330] Ensure wait() is called on git processesCory Johns2013-10-091-0/+1
| | |
* | | Fixed premature closing of stdout/stderr streams, which caused plenty of errors.Sebastian Thiel2014-11-141-2/+0
| | | | | | | | | | | | | | | The lines were added in commit b38020ae , and I might consider a patch release soon or get ready with 0.3.3. Lets hope not too many installations will be affected.
* | | Merge pull request #150 from derenio/0.3Sebastian Thiel2014-11-141-0/+7
|\ \ \ | | | | | | | | Merged fd leaks fix from the master to the 0.3 version
| * | | Ignore signal exception on AutoInterrupt destructor.Tatsuki Sugiura2014-03-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When command run as subprocess, AutoInterrupt will kill the process on destructor. However, if process already finished, it raise OSError exception. This fix just ignore OSError on os.kill. Conflicts: git/cmd.py
| * | | Fix fd leak on git cmd.Tatsuki Sugiura2014-03-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently if command is called with as_proces=True, pipes for the command will not be closed. This change makes sure to close command file descriptors. Conflicts: git/cmd.py
* | | | Merge pull request #181 from hashar/git-exec-const-outputSebastian Thiel2014-11-141-0/+4
|\ \ \ \ | | | | | | | | | | Ensure consistent output from git command
| * | | | Ensure consistent output from git commandAntoine Musso2014-07-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The git command output can vary by language which would cause assertions errors when parsing the output. On POSIX system the language used by git can be adjusted by LC_MESSAGES. The special language 'C' is guaranteed to be always available and is whatever default the software has been written in (usually english, the case for git). Thus passing LC_MESSAGES to Popen will ensure we receive from git a consistent output regardless of the user preference. Addresses #153
* | | | | Merge pull request #195 from maxyz/github-pull-88Sebastian Thiel2014-11-121-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Fix the `git version` parser.
| * | | | | Fix the `git version` parser.Marcus R. Brown2014-10-011-1/+1
| |/ / / /
* | | | | Merge pull request #198 from folti/0.3Sebastian Thiel2014-11-121-1/+4
|\ \ \ \ \ | | | | | | | | | | | | GitRunCommand exception can store stdout output too.
| * | | | | GitRunCommand exception can store stdout output too.Tamas Pal2014-11-051-1/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some git commands, like git merge outputs their problems onto stdout, instead of stderr, which will be thrown away by the current setup. This change allows the GitPython commands to store the stdout's value too, in case of error.
* | | | | Fixing unicode typesCraig Northway2014-11-121-0/+4
|/ / / / | | | | | | | | | | | | (cherry picked from commit ca2b901e7229fc5c793762fd4e4c1c38c5a78e80)
* | | | add git command optionsEric Brunson2014-04-251-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add __call__ method to Git object to allow passing git command options to the executable requires flag to transform_kwargs add unit test Change-Id: If1bc01008e66d3fd3811c15b56e58f38c95b9887
* | | | add git command optionsEric Brunson2014-04-231-3/+27
|/ / / | | | | | | | | | | | | | | | | | | Add __call__ method to Git object to allow passing git command options to the executable Change-Id: If1bc01008e66d3fd3811c15b56e58f38c95b9887
* | | tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel2014-02-091-531/+531
| |/ |/| | | | | probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
* | cmd: on windows, we will now fallback to using git.cmd, as the default ↵Sebastian Thiel2011-07-061-6/+39
|/ | | | | | installation puts it into the path, instead of git.exe. Of course we warn about the performance penalty that goes with it. Fortunately, using a wrapped git.exe works when creating pipes to the process, admittedly I was a bit surprised by this. fixes #26
* Implemented GIT_PYTHON_GIT_EXECUTABLE including test and docsSebastian Thiel2011-07-051-6/+11
|
* Fixed implementation of _version_info which didn't work for python 2.4 ↵Sebastian Thiel2011-06-131-1/+1
| | | | thanks to the rpartition method. omg
* git.version_info now returns exactly 4 numbersSebastian Thiel2011-06-071-2/+3
|
* Fixed up docs in preparation for the new 0.3.1 releaseSebastian Thiel2011-06-071-1/+2
|
* Added version_info property to git command. Its cached and efficient, ↵Sebastian Thiel2011-06-071-5/+24
| | | | including test
* OSX Signal handling: removed previous hack to fix it somehow using sleep - ↵Sebastian Thiel2011-01-121-1/+0
| | | | the error was caused by PySide which, when instantiating a QApplication, changed the signal handlers to interrupt, instead of retry operating system calls, which caused git-python to fail subsequently. signal.siginterrupt can be used to fix this behaviour after an QApplication was instatiated.
* Added the bugfix code as a utility function to be reused wherever this ↵Andreas Gutsche2011-01-061-6/+2
| | | | specific subprocess bug occurs.
* Hacked the wait function so that it works with pyside in OS X by using ↵Andreas Gutsche2011-01-061-1/+6
| | | | "sleep()".
* Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel2010-11-251-0/+515
adjusted