summaryrefslogtreecommitdiff
path: root/git/cmd.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | fix(cmd): remove unused importSebastian Thiel2015-10-151-1/+0
| |
* | doc(cmd): make sure people know wait() may blockSebastian Thiel2015-10-151-0/+2
| | | | | | | | Related to #357
* | Revert "fix(cmd): fixed deadlock when stderr buffer overflow"revert-357-autointerrupt_deadlock_fixSebastian Thiel2015-10-151-4/+4
| |
* | fix(cmd): fixed deadlock when stderr buffer overflowIvan Ryabchenko2015-10-151-4/+4
|/ | | | | | | Fixed deadlock when using stderr=PIPE in Popen and Git generates enough output to a pipe such that it blocks waiting for the OS pipe buffer to accept more data (see https://docs.python.org/2/library/subprocess.html#subprocess.Popen.wait)
* fix(cmd): make short options with arguments become two separate arguments ↵Marcos Dione2015-08-201-1/+1
| | | | for the executable.
* fix(cmd): don't open stdout when fetchingSebastian Thiel2015-07-031-80/+75
| | | | | | | This allows us to use the main thread to parse stderr to get progress, and resolve assertion failures hopefully once and for all. Relates to #301
* fix(cmd): line parsingSebastian Thiel2015-07-031-68/+81
| | | | | | * Previously we could fail to parse the last line within a read buffer, which is now fixed. * Added a test to verify our *slow* line parsing works as expected.
* Added NullHandlers to all loggers to preven "No handler" messagesJames Nowell2015-06-251-0/+1
| | | | | | | | When the code is run without setting up loggers, the loggers have no handlers for the emitted messages. The logging module displays: `No handlers could be found for logger "git.cmd"` on the console. By adding a NullHandler (a no-op) the message disappears, and doesn't affect logging when other handlers are configured.
* fix(git-cmd): set LANGUAGE as wellSebastian Thiel2015-05-311-0/+3
| | | | | | This is a pre-emptive measure based on http://goo.gl/l74GC8 . Related to #290
* fix(git-cmd): use LC_ALL instead of LC_MESSAGESSebastian Thiel2015-05-311-2/+4
| | | | | | | | | Previously, only program messages where forced to the C-locale, now we force the entire program. That way, we should assure a remote will not provide us with branch information in any other language but english. Related to #290
* fix(cmd): throw GitCommandNotFoundError ...Sebastian Thiel2015-04-081-13/+33
| | | | | | | ... if it is not found. Previously, especially on windows, this wasn't explicit. Fixes #248, affects #126
* Added 'insert_kwargs_after' flag for consumption by _call_process.Sebastian Thiel2015-02-211-1/+13
| | | | | | While at it, all other invocations of .git in remote.py were reviewed Fixes #262
* Removed Git.sshkey() as it couldn't be distributed properly.0.3.6Sebastian Thiel2015-01-221-21/+0
| | | | | | | However, I kept information on how to achieve the same thing with `custom_environment()` in the test. Related to #234
* Merge branch 'master' into teeberg-masterSebastian Thiel2015-01-221-1/+0
|\ | | | | | | | | | | Need latest master to proceed with test Conflicts: doc/source/tutorial.rst
* | Intermediate commit on my way to get this finalized.Sebastian Thiel2015-01-221-11/+14
| | | | | | | | | | Renamed context manager 'with_environment' to 'custom_environment'. On my way to implement sshkey test.
* | Rename 'environment' and 'set_environment'Jonas Trappenberg2015-01-211-10/+10
| |
* | Add method to query environmentJonas Trappenberg2015-01-211-0/+3
| |
* | Add 'sshkey' context managerJonas Trappenberg2015-01-211-1/+75
| |
* | Fix some typosJonas Trappenberg2015-01-211-2/+2
|/
* Added advance usage examples to tutorial and made minor fixes.Sebastian Thiel2015-01-211-2/+7
| | | | | | GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
* Initial set of documentation improvements, and a fix to the submodule tests.Sebastian Thiel2015-01-211-1/+1
| | | | | | Now travisci tests should work once again. Related to #239
* Another take on fixing the current concurrent read implementation in git.cmdSebastian Thiel2015-01-201-34/+77
| | | | | | | | There have been rather obvious errors in there, as we forgot to unregister the filehandles. Now we will read from a buffer ourselves, which should be faster and ideally, doesn't lead to spurious errors anymore. Related to #232
* Fixed some doc strings to build correctly with sphinxSebastian Thiel2015-01-141-3/+3
| | | | | | Fixes #7 [ci skip]
* An attempt to help the threaded reading to not show spurious errors anymore.Sebastian Thiel2015-01-141-8/+8
| | | | | It does not necessarily seem to work, but at least we don't access a dict concurrently anymore.
* IndexFile.commit() now runs pre-commit and post-commit hooks.Sebastian Thiel2015-01-121-1/+1
| | | | | | | | | However, it does so only on posix. The test-case will run on posix only as well. Please note that in theory, even on windows we will attempt to run hooks, even though I am not sure that this will actually work. Fixes #81
* Added test to assure blame can deal with binary patches.Sebastian Thiel2015-01-091-2/+8
| | | | Fixes #74
* Improve error handling of fetch/pull line parsingSebastian Thiel2015-01-081-1/+6
| | | | Fixes #48
* Made improvements to assure test-cases don't leak file handlesSebastian Thiel2015-01-071-6/+16
| | | | | | | | At least leakage is considerably reduced. Additionally, a test-case was added which triggers failure if auto-disposal of resources wouldn't work. Fixes #60
* Fix flake8Sebastian Thiel2015-01-071-10/+10
|
* Using a wait-group seems to properly sync the threads for buffer depletionSebastian Thiel2015-01-071-8/+12
|
* Implemented threaded version of pipe-drainingSebastian Thiel2015-01-071-15/+30
|
* Implemented non-blocking operations using poll()Sebastian Thiel2015-01-071-0/+96
| | | | Next up is using threads
* Make sure we ignore WindowsErrors too, in case the process is already deadSebastian Thiel2015-01-071-1/+1
| | | | Fixes #140
* This should fix flake8 on py3Sebastian Thiel2015-01-071-1/+3
| | | | See #177
* Make flake8 happySebastian Thiel2015-01-061-4/+3
|
* test_repo worksSebastian Thiel2015-01-061-7/+10
|
* test_remote worksSebastian Thiel2015-01-061-1/+1
| | | | | | | And I have to wonder why git-daemon serves under py2.7, but really wants receive-pack to be allowed under 3.4. Maybe it's a repository override which for some reason doesn't work in py3.4 ? Maybe because the change is not flushed ?
* test_commit works once againSebastian Thiel2015-01-051-1/+6
|
* Intermediate commit: test_config and test_actor worksSebastian Thiel2015-01-051-17/+27
| | | | | Kind of tackling the tasks step by step, picking low-hanging fruit first, or the ones that everyone depends on
* 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