| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/
|
|
|
| |
I did keep some "bare" except with catch all Exception: , while tried to disable
flake8 complaints where clearly all exceptions are to be catched
|
|\
| |
| | |
Remove trailing slash on drive path
|
| | |
|
|\ \
| | |
| | | |
Fixes issue #694
|
| | | |
|
| |/ |
|
|\ \
| | |
| | | |
commit-msg hook support
|
| | | |
|
|\ \ \
| |_|/
|/| | |
Fix broken progress in clone_from()
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
|\ \
| | |
| | | |
Only gc.collect() under windows
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Under Windows, tempfile objects are holding references to open files
until the garbage collector closes them and frees them. Explicit
calls to gc.collect() were added to the finalizer for the Repo class
to force them to be closed synchronously. However, this is expensive,
especially in large, long-running programs. As a temporary measure
to alleviate the performance regression on other platforms, only
perform these calls when running under Windows.
Fixes #553
|
|\ \
| | |
| | | |
Converting path in _clone to str before any other operation
|
| |/
| |
| |
| | |
case eg pathlib.Path is passed
|
|/
|
|
|
|
|
| |
as long as line contains "peeled", accept it
fixes the PackingType of packed-Refs not understood:
# pack-refs with: peeled fully-peeled sorted
problem
|
|
|
|
|
|
| |
We don't properly encode our error message under python3.
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
|
| |
|
| |
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Added tilde expansion as part of the refresh function. Added python
version check such that we properly capture PermissionError in Python
>=3 and OSError in Python <3.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Added additional information in the import warning/error that tells the
user how to silence the warning/error. Also added a GIT_OK variable
that allows for a quick check whether the refresh has succeeded instead
of needing to test an actual git command.
|
| | |
| | |
| | |
| | | |
Renamed and cleaned up variable names.
|
| | |
| | |
| | |
| | |
| | | |
Removed few remaining references to git.setup function (as it was
renamed to refresh).
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Renamed GIT_PYTHON_NOWARN to GIT_PYTHON_INITERR and added values for
quiet import, warning import, and raise import. These respectively mean
that no message or error is printed if git is non-existent, a plain
warning is printed but the import succeeds, and an ImportError
exception is raised.
|
| | |
| | |
| | |
| | |
| | | |
Added the ability to silence the first refresh warning upon import by
setting an environment variable.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Renamed to simplify and avoid issue with nose tests trying to use
`setup` as a setup for testing. Unittest implements basic test for
refreshing with a bad git path versus a good git path.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Discovered that the remote module also relies on the git executable as
such it also needs to be “refreshed” anytime the git executable is
updated or changed. This was best solved by moving the setup function
into the top level __init__ where the setup simply calls
git.cmd.Git.refresh and git.remote.FetchInfo.refresh.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Added one function (setup) and an alias (refresh simply calls setup).
These functions give the developer one more way to configure the git
executable path. This also allows the user to interactively adjust the
git executable configured during runtime as these functions dynamically
update the executable path for the entire git module.
|
|\ \ \
| | |/
| |/| |
|
| |\ \
| | | |
| | | | |
FetchInfo.re_fetch_result has no reason to be public
|
| | |/
| | |
| | |
| | |
| | | |
And when using the API interactively, having it show up as public is
confusing.
|
| |\ \
| | | |
| | | | |
Fix GitError being raised in initial `import git`
|
| | |/
| | |
| | |
| | |
| | |
| | | |
This catches any raise of one of the custom exceptions defined in
`git.exc` during the imports in the dunder init, and raises an
`ImportError` in those cases.
|
| |\ \
| | | |
| | | | |
worktrees: make non-packed refs also work correctly.
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Turns out aec58a9 did the right thing for /packed/ refs, but didn't work
correctly on /unpacked/ refs. So this patch gives unpacked refs the
same treatment.
Without the fix here, the test added will cause this traceback:
======================================================================
ERROR: Check that we find .git as a worktree file and find the worktree
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pjones/devel/github.com/GitPython/git/test/lib/helper.py", line 92, in wrapper
return func(self, path)
File "/home/pjones/devel/github.com/GitPython/git/test/test_repo.py", line 938, in test_git_work_tree_dotgit
self.assertIsInstance(repo.heads['aaaaaaaa'], Head)
File "/home/pjones/devel/github.com/GitPython/git/util.py", line 893, in __getitem__
raise IndexError("No item found with id %r" % (self._prefix + index))
IndexError: No item found with id 'aaaaaaaa'
Woops.
Things I've learned:
- test_remote doesn't work currently if you start on a branch. I think
it never did?
- Because of 346424da, all *sorts* of stuff in the test suite doesn't
work if you name your development branch "packed-refs"
(This seems like a bug...)
Signed-off-by: Peter Jones <pjones@redhat.com>
|
| |\ \
| | | |
| | | |
| | | | |
Plazmaz-master
|
| | | | |
|
| | |/ |
|
| | |
| | |
| | |
| | | |
It's not portable to test for a secific author name
|
| |\ \
| | | |
| | | | |
util: move expand_path from repo/base and use it in Git class init
|
| | |/ |
|
| | | |
|
| |\ \
| | | |
| | | | |
BF: Added missing NullHandler to logger in git.remote
|
| | |/ |
|
| |/ |
|
|\ \ |
|