aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-07-03chore(travis): added test for issue 301Sebastian Thiel
Related to #301
2015-07-03fix(cmd): don't open stdout when fetchingSebastian Thiel
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
2015-07-03test(git): remove unnecessary fixtureSebastian Thiel
Test was adjusted as well to parse only a single file which simulates stderr output.
2015-07-03test(remote): make assertion less verboseSebastian Thiel
2015-07-03fix(cmd): line parsingSebastian Thiel
* 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.
2015-07-01Merge pull request #307 from jonls/clone-from-with-envSebastian Thiel
Add env parameter to Repo.clone_from() for setting environment variables
2015-06-30Add env parameter to Repo.clone_from() for setting environment variablesJon Lund Steffensen
Adds the optional keyword parameter env to Repo.clone_from(). The parameter is a dictionary containing the desired environment variables for the git clone invocation. The environment is applied to the temporary Git instance before calling Repo._clone().
2015-06-30Merge pull request #305 from jonls/fix-doc-clone-fromSebastian Thiel
Fix docstring of Repo.clone_from()
2015-06-29Fix docstring of Repo.clone_from()Jon Lund Steffensen
2015-06-26fix(git-test): assure test does works on linuxSebastian Thiel
It shows that the previous implementation was never really working on linux, and thus failed on travis as well for good reason. Closes #303
2015-06-26docs(README): travis badge for master, not 0.3Sebastian Thiel
2015-06-26fix(index): handle adding symlinks to dirsSebastian Thiel
When expanding directories, check if it is a symlink and don't expand them at all. Previously, we followed symlinks and expanded their contents, which could lead to weird index files. Fixes #302
2015-06-26Merge branch 'missionfocus-loggingNullHandlers'Sebastian Thiel
2015-06-26fix(logging): monkeypatch logging with NullHandlerSebastian Thiel
This will make usage of the `NullHandler` possible in python 2.6 and below.
2015-06-25Added NullHandlers to all loggers to preven "No handler" messagesJames Nowell
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.
2015-06-10Merge pull request #291 from hvnsweeting/support-init-choosing-backendSebastian Thiel
support passing odbt for using with Repo
2015-06-10fix(remote): assert fetch respec is setSebastian Thiel
It turns out we can't deal do fetches if no refspec is set as git will change the format of the fetch return values, providing less information than usual. A test was added to show that such a case will fail, and an assertion will assure we don't attempt to fetch/pull if there is no refspec for 'fetch'. Closes #296
2015-06-10fix(test_git): handle `select.poll()` missingSebastian Thiel
In that case, the handler for processing stdout and stderr of the git process is offloaded to threads. These currently don't return any exception they raise. We could easily fix this using an approach as shown [here](http://goo.gl/hnVax6).
2015-06-10Merge branch 'victorgp-master'Sebastian Thiel
2015-06-10fix(remote): don't close stdout on fetch/pullSebastian Thiel
Reverted changes of `fe2fbc5~2`. This caused `git-pull` to error, which now actually results in a fatal error while fetching or pulling. Previously we simply didn't check for this issue. Now we are back to a `poll` based or threaded concurrent reading from stdout and stderr to prevent a git process deadlock, and the aforementioned error. Related to #297
2015-06-10Merge branch 'master' of https://github.com/victorgp/GitPython into ↵Sebastian Thiel
victorgp-master
2015-06-10Merge branch 'Javex-submodule_fix'Sebastian Thiel
2015-06-10refactor(repo): parameter renaming and cleanupSebastian Thiel
* renamed `consider_submodules` to `submodules` to be in line with the existing parameters. Nowadays I would prefer the `consider_` prefix, but can't change the existing API and thus stick to the current naming scheme. * reduced amount of code in one portion to make it more maintainable. Related to #294
2015-06-10Merge branch 'submodule_fix' of https://github.com/Javex/GitPython into ↵Sebastian Thiel
Javex-submodule_fix
2015-06-10Merge branch 'T0MASD-add_ssh_script_syntax'Sebastian Thiel
2015-06-10docs(tutorial): fix typo, minor improvementsSebastian Thiel
2015-06-08While parsing errors, also detecting lines starting with error:Victor Garcia
2015-06-05Allow submodules to be ignored in is_dirtyjavex
There are cases when might not consider a directory dirty when a submodule has changes. Particular case was git-up stashing changes where submodules are irrelevant.
2015-06-05Add example ssh scriptTomas Dabasinskas
2015-06-01add docstring for new argHung Nguyen Viet
2015-06-01support passing odbt for using with RepoHung Nguyen Viet
2015-05-31fix(git-cmd): set LANGUAGE as wellSebastian Thiel
This is a pre-emptive measure based on http://goo.gl/l74GC8 . Related to #290
2015-05-31fix(git-cmd): use LC_ALL instead of LC_MESSAGESSebastian Thiel
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
2015-05-26docs(intro):swap mailinglist with stackoverflowSebastian Thiel
2015-05-14Merge pull request #288 from johnwalker/bytesSebastian Thiel
Fix type error (startswith expects bytes)
2015-05-13Fix type error (startswith expects bytes)John L. Walker
2015-04-22fix(versionup): release 1.0.11.0.1Sebastian Thiel
2015-04-22fix(travis): can't overrwrite travis .gitconfigSebastian Thiel
As it seems to contain custom inforamtion that we want to keep. Now we are appending to it ...
2015-04-22fix(config): selective cfg write;fix cfg parserSebastian Thiel
* config parser now handles quoted values correctly. This doesn't hamper multi-line support. * added regression test to travis to assure we will be warned if we rewrite and break the user's .gitconfig file * only rewrite configuration files if we actually called a mutating method on the writer. Previously it would always rewrite it. Fixes #285
2015-04-22Merge pull request #284 from moben/test-fixesSebastian Thiel
git-daemon test fixes
2015-04-21test: make git-daemon port configurable via envBenedikt Morbach
add a GIT_PYTHON_TEST_GIT_DAEMON_PORT to set a port other than 9418, for example for when you already have a daemon running on that port.
2015-04-21test: Make git-daemon only listen on localhostBenedikt Morbach
No reason to expose a daemon to all interfaces when it is only used for tests, which connect to localhost anyway. I'd love to use localhost here instead, but the git-daemon man page points out: If IPv6 is not supported, then --listen=hostname is also not supported and --listen must be given an IPv4 address. I don't know of a way to check if git has ipv6 support, but 127.0.0.1 should be around for the foreseeable future
2015-04-17Merge pull request #283 from bcicen/bcicen-typoSebastian Thiel
Changelog typo
2015-04-17Changelog typobradley
very small typo in changelog. Reop -> Repo
2015-04-16Merge branch 'matt-jordan-remote_source'Sebastian Thiel
2015-04-16fix(test_docs): we are at major version 1 nowSebastian Thiel
It expected to see major version 0 though.
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-10docs(README): added code-climate badgeSebastian Thiel
We are not too good, but nothing to shy away from.