Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a way to force status codes inside AutoInterrupt._terminate, and let ↵ | sroet | 2021-09-18 | 1 | -4/+10 |
| | | | | tests use it | ||||
* | set timeout to a non-zero value | sroet | 2021-09-18 | 1 | -2/+2 |
| | |||||
* | two spaces before comments | sroet | 2021-09-18 | 1 | -1/+1 |
| | |||||
* | fetch is also to quick on CI, only test pull | sroet | 2021-09-18 | 1 | -1/+1 |
| | |||||
* | make test timeout stricter | sroet | 2021-09-18 | 1 | -2/+2 |
| | |||||
* | go for pytest.raises and test that the functions run | sroet | 2021-09-18 | 1 | -3/+3 |
| | |||||
* | update tests and add a comment about different behaviour of 'push' vs 'fetch' | sroet | 2021-09-18 | 1 | -3/+17 |
| | |||||
* | propagate kwargs in do_test_fetch | sroet | 2021-09-18 | 1 | -2/+2 |
| | |||||
* | also test a call to 'push' with 10s timeout | sroet | 2021-09-18 | 1 | -1/+1 |
| | |||||
* | add test timeout with the old 10 s timeout | sroet | 2021-09-18 | 1 | -2/+2 |
| | |||||
* | Update test_util.py | Eric Wieser | 2021-08-04 | 1 | -1/+4 |
| | |||||
* | Try a better test | Eric Wieser | 2021-08-04 | 1 | -3/+18 |
| | |||||
* | Fix test | Eric Wieser | 2021-08-03 | 1 | -9/+9 |
| | |||||
* | Update test_refs.py | Dominic | 2021-07-31 | 1 | -3/+7 |
| | |||||
* | Added support of spaces for clone multi_options | Igor Lakhtenkov | 2021-07-27 | 1 | -1/+3 |
| | |||||
* | Rmv old py2.7 __future__ imports | Yobmod | 2021-07-19 | 5 | -9/+0 |
| | |||||
* | rmv python 3.5 checks from tests | Yobmod | 2021-07-19 | 8 | -24/+15 |
| | |||||
* | Merge branch 'main' into Yobmod/main | Sebastian Thiel | 2021-07-01 | 1 | -0/+66 |
|\ | |||||
| * | Added clone multi_options to Submodule | Igor Lakhtenkov | 2021-06-30 | 1 | -0/+66 |
| | | |||||
* | | Type Traversable.traverse() better, start types of submodule | Yobmod | 2021-06-30 | 2 | -1/+14 |
|/ | |||||
* | Adds repo.is_valid_object check | Robert Westman | 2021-06-05 | 1 | -0/+28 |
| | |||||
* | Conditionally throw an error | Sebastian Thiel | 2021-06-04 | 1 | -1/+1 |
| | |||||
* | Reverts auto format introduced with 2dbc2be8 | Robert Westman | 2021-06-03 | 1 | -10/+8 |
| | |||||
* | Fixes test to not throw false negative results | Robert Westman | 2021-06-03 | 1 | -1/+2 |
| | |||||
* | Adds failing test for repo.tag() method | Robert Westman | 2021-06-03 | 1 | -7/+18 |
| | |||||
* | improve index mode for files with executable bit | Todd Zullinger | 2021-05-25 | 1 | -2/+13 |
| | | | | | | | | | | | | | | | | | The fix for #430 in bebc4f56 (Use correct mode for executable files, 2016-05-19) is incomplete. It fails (in most cases) when files have modes which are not exactly 0644 or 0755. Git only cares whether the executable bit is set (or not). Ensure the mode we set for the index is either 100644 or 100755 based on whether the executable bit is set for the file owner. Do this similarly to how upstream git does it in cache.h¹. Add a test covering various file modes to help catch regressions. Fixes #1253 ¹ https://github.com/git/git/blob/v2.31.1/cache.h#L247 | ||||
* | add initial types to remote.py | yobmod | 2021-05-03 | 5 | -1/+73 |
| | |||||
* | add newlines | yobmod | 2021-02-28 | 1 | -0/+0 |
| | |||||
* | add newline | yobmod | 2021-02-28 | 1 | -1/+1 |
| | |||||
* | add testrunner.py to run all tests (as hook for static analysis) | yobmod | 2021-02-28 | 1 | -0/+7 |
| | |||||
* | add replace method to git.Commit | Lars Kellogg-Stedman | 2021-02-15 | 1 | -0/+20 |
| | | | | | | | | | | | This adds a replace method to git.Commit. The replace method returns a copy of the Commit object with attributes replaced from keyword arguments. For example: >>> old = repo.head.commit >>> new = old.replace(message='This is a test') closes #1123 | ||||
* | Fix inheritance issue at commit.iter_items | Yuri Volchkov | 2021-02-05 | 1 | -0/+7 |
| | | | | | | | The iterator used to yield Commit() objects, which does not play well with inheritance. Yield cls() instead. Signed-off-by: Yuri Volchkov <yuri@volch.org> | ||||
* | fix tests the fast way | Sebastian Thiel | 2021-01-08 | 1 | -8/+10 |
| | |||||
* | try fixing up test fixtures and implementation | Sebastian Thiel | 2021-01-06 | 1 | -4/+8 |
| | |||||
* | Fix default actor name handling | Athos Ribeiro | 2020-10-23 | 1 | -4/+14 |
| | | | | | | | | In c96476b, the new default_name nested function does not contain a retun statement. This leads to an issue when the environment variables are not present, where the actor name would not be set. Signed-off-by: Athos Ribeiro <athos@redhat.com> | ||||
* | Get system user id in a lazy manner | Athos Ribeiro | 2020-10-22 | 1 | -1/+24 |
| | | | | | | | | | | | | | | | | Calling getpass.getuser may lead to breakage in environments where there is no entries in the /etc/passwd file for the current user. Setting the environment variables for the git user configurations should prevents GitPython from using values from /etc/passwd. However, doing so will not prevent reading /etc/passwd and looking for an entry with the current user UID. This patch changes the behavior described above so GitPython will perform a lazy evaluation of /etc/passwd, only doing so when the environment variables for the git user configuration are not available. Signed-off-by: Athos Ribeiro <athos@redhat.com> | ||||
* | Keep flake happy | Xavier Verges | 2020-10-05 | 1 | -3/+5 |
| | |||||
* | Do not break convention when updating sys.path | Xavier Verges | 2020-10-05 | 1 | -0/+6 |
| | |||||
* | git/repo/base.py: is_dirty(): Fix pathspec handling | Arnaud Patard | 2020-09-28 | 1 | -0/+14 |
| | | | | | | | | | | | | | It's possible to specify a pathspec (eg :!foo) to git diff/status/... but it currently fails with: git.exc.GitCommandError: Cmd('/usr/bin/git') failed due to: exit code(128) cmdline: /usr/bin/git diff --abbrev=40 --full-index --raw :!foo stderr: 'fatal: ambiguous argument ':!foo': unknown revision or path not in the working tree. Add missing '--' to the arguments to fix this ambiguity Signed-off-by: Arnaud Patard <apatard@hupstream.com> | ||||
* | Fix typo | Eric Dill | 2020-09-09 | 1 | -1/+1 |
| | |||||
* | Ensure that detached HEAD does not raise when comparing branch name. | Jeremy Retailleau | 2020-09-03 | 1 | -0/+17 |
| | |||||
* | Add missing rules to match hierarchy path | Jeremy Retailleau | 2020-09-02 | 1 | -0/+8 |
| | |||||
* | Add unit tests | Jeremy Retailleau | 2020-09-02 | 1 | -0/+99 |
| | |||||
* | accept datetime instances as dates | Alba Mendez | 2020-08-31 | 1 | -0/+5 |
| | | | | | | There's no easy way to re-create a commit (i.e. for rewriting purposes), because dates must be formatted as strings, passed, then parsed back. This patch allows parse_date() to accept datetime instances, such as those produced by from_timestamp() above. | ||||
* | test: add installation test | Konrad Weihmann | 2020-07-12 | 1 | -0/+29 |
| | | | | | | | | | which installs the current codebase in a venv and runs 'import git' to test if codebase can be installed properly. This adds virtualenv to the test requirements Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> | ||||
* | tests: move to root dir | Konrad Weihmann | 2020-07-12 | 98 | -0/+17463 |
| | | | | | | | | | This should ensure that tests are NOT packaged into release package by setuptools, as tests are development only + fixtures after moving Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> | ||||
* | Revert moving tests out of 'git' folder, related to #1030 | Sebastian Thiel | 2020-07-12 | 98 | -17463/+0 |
| | |||||
* | tests: move to root dir | Konrad Weihmann | 2020-07-12 | 98 | -0/+17463 |
| | | | | | | | | | This should ensure that tests are NOT packaged into release package by setuptools, as tests are development only + fixtures after moving Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> | ||||
* | Moved everything into the git subdirectory - some tests still need to be ↵ | Sebastian Thiel | 2010-11-25 | 67 | -8668/+0 |
| | | | | adjusted | ||||
* | Implemented dry_run mode including tests for RootModule.update and Submodule | Sebastian Thiel | 2010-11-25 | 1 | -8/+61 |
| |