aboutsummaryrefslogtreecommitdiff
path: root/git/util.py
AgeCommit message (Collapse)Author
2015-06-26fix(logging): monkeypatch logging with NullHandlerSebastian Thiel
This will make usage of the `NullHandler` possible in python 2.6 and below.
2015-04-16fix(indent): flake-8 happynessSebastian Thiel
2015-04-15fix(util): Correct number of op codesMatt Jordan
The previous patch failed to update the expected number of op_codes, which would result in an exception when creating an instance of RemoteProgress. This patch corrects the value to the new expected number of op_codes (8)
2015-04-15fix(util): Handle 'Finding sources' messages in RemoteProgressMatt Jordan
When running a long running operation (such as a clone on a large repo), Git may return a message indicating that it is 'Finding sources'. Since there is no bit field value for this message, this causes a large amount of error messages to be emitted to stderr. This patch fixes this by adding another bit field value for this message, FINDING_SOURCES. Derived classes can look for this op_code and handle it appropriately.
2015-04-08fix(remote): allow to raise during push/fetchSebastian Thiel
Do not swallow non-zero exit status during push and fetch unless we managed to parse head information. This behaviour will effetively handle cases were no work was done due to invalid refspecs or insufficient permissions. Fixes #271
2015-04-08fix(docs): be clear about exit code handlingSebastian Thiel
When pushing/pulling, we ignore errors unless it's exit code 128. The reason for this is now made explicit to make clear that issues are handled by PushInfo flags accordingly. Related #271
2015-01-21Fixed regression in test-suite for IndexFileSebastian Thiel
Previously, it checked for AssertionErrors, now we have to implement need-unbare-repo check ourselves.
2015-01-20Fixed flake8 and a minor test regression.Sebastian Thiel
The latter happened as now BadName is thrown, instead of BadObject. Changes.rst was marked accordingly
2015-01-20Greatly improved possible safety of Submodule.update(), which is used by ↵Sebastian Thiel
default. Previously, the implementation would gladly reset new commits in submodules, and/or reset a dirty working tree. Now the new force_reset/force flag has to be specified explicitly to get back to the old behaviour. All submodule tests except for one are working.
2015-01-19Improved unicode handling when using os.environ or GitConfigParserSebastian Thiel
Assured unicode values are supported when reading the configuration, and when getting author/committer information from the environment. Fixes #237
2015-01-14Fixed some doc strings to build correctly with sphinxSebastian Thiel
Fixes #7 [ci skip]
2015-01-07Made sure commits accept unicode or unicode charactersSebastian Thiel
2015-01-07Fix flake8Sebastian Thiel
2015-01-07Using a wait-group seems to properly sync the threads for buffer depletionSebastian Thiel
2015-01-07Implemented non-blocking operations using poll()Sebastian Thiel
Next up is using threads
2015-01-06test_index worksSebastian Thiel
2015-01-04initial set of adjustments to make (most) imports work.Sebastian Thiel
More to come, especially when it's about strings
2015-01-04Removed unnecessary (non-gitpython) tests and fixed flake80.3.3Sebastian Thiel
2015-01-04Bumped version, updated changelog, reduced code smellSebastian Thiel
There is more work to do though, as many imports are still incorrect. Also, there are still print statements
2014-11-19Applied autopep8Sebastian Thiel
Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
2014-11-16pep8 linting (trailing whitespace)Antoine Musso
W291 trailing whitespace
2014-11-16pep8 linting (whitespace before/after)Antoine Musso
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
2014-11-16pep8 linting (blank lines expectations)Antoine Musso
E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
2014-11-16pep8 linting (whitespaces)Antoine Musso
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
2014-11-15Merge branch 'sf-master' of https://github.com/johnsca/GitPython into ↵Sebastian Thiel
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
2014-11-14Simplified get_user_id() and fixed possible python3 compatiblity issue.Sebastian Thiel
Changed motivated by https://github.com/gitpython-developers/GitPython/pull/52
2014-06-26Add patch from to 0.3 branch.William Gibb
https://github.com/gitpython-developers/GitPython/commit/f362d10fa24395c21b1629923ccd705ba73ae996 Related to #43
2014-02-09tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel
probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
2014-01-28Fix missed import from d3a7282Dave Brondsema
The `finalize_process` method was moved but this import wasn't carried with it.
2013-10-09[#5330] Ensure wait() is called on git processesCory Johns
2011-06-13Submodule now uses a specialized method to remove its trees to allow ↵Sebastian Thiel
read-only files to be removed on windows as well
2011-06-13Made remote line parsing more stable. On windows it can be that we encounter ↵Sebastian Thiel
partial or intermixed lines from the pipe. This really shouldn't be, but its windows so it happens
2011-06-08util: Added test for iterable list, and implemented __contains__ and __del__ ↵Sebastian Thiel
functionality
2011-06-08log: non-existing logs no longer throw an exception, but are ignored. Fixed ↵Sebastian Thiel
critical bug which caused packed-ref files to be written with native line endings, which made git fail to parse it. I wonder why I never noticed this before, or ignored it. Unbelievable \!
2011-06-07Parse more git-fetch operation log codes.jez
2011-06-07Added conditional usage of the --progress flag to all relevant methods, that ↵Sebastian Thiel
is push, fetch, pull and clone. This allows progress information to be sent in newer git versions without breaking older ones (ideally)
2011-06-07Add progress tracking for git-clone.jez
2011-01-12OSX Signal handling: removed previous hack to fix it somehow using sleep - ↵Sebastian Thiel
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.
2011-01-12sleep ui hack fix: removed platform.system() to use sys.platform instead, as ↵Sebastian Thiel
platform.system makes a system call itself
2011-01-06Added the bugfix code as a utility function to be reused wherever this ↵Andreas Gutsche
specific subprocess bug occurs.
2010-11-25Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel
adjusted