aboutsummaryrefslogtreecommitdiff
path: root/git
AgeCommit message (Collapse)Author
2016-09-26win: GC.collect on all TC.tearDown to fix appveyor hang runsKostis Anagnostopoulos
+ Fixed the hangs at `test_git:TestGit.test_handle_process_output()`. [travisci skip]
2016-09-25test, deps: FIX `mock` deps on py3.Kostis Anagnostopoulos
+ Del extra spaces, import os.path as osp
2016-09-25fix(test): put `test_commits` backSebastian Thiel
Thanks to @yarikoptic for catching this one !
2016-09-25fix(test): deal with py2 and py3Sebastian Thiel
It ain't pretty, but should do the job. Related to #514
2016-09-25fix(index): improve LockedFD handlingSebastian Thiel
Relying on the destructor will not work, even though the code used to rely on it. Now we handle failures more explicitly. Far from perfect, but a good start for a fix. Fixes #514
2016-09-23BF: allow for other section names which start with a string "remote"Yaroslav Halchenko
by demanding a space after a word remote, and space is explicitly described as a delimiter in man git-config: To begin a subsection put its name in double quotes, separated by space from the section name, otherwise e.g. File "/usr/lib/python2.7/dist-packages/datalad/support/gitrepo.py", line 836, in get_remote_branches for remote in self.repo.remotes: File "/home/yoh/deb/gits/python-git/git/repo/base.py", line 271, in remotes return Remote.list_items(self) File "/home/yoh/deb/gits/python-git/git/util.py", line 745, in list_items out_list.extend(cls.iter_items(repo, *args, **kwargs)) File "/home/yoh/deb/gits/python-git/git/remote.py", line 453, in iter_items raise ValueError("Remote-Section has invalid format: %r" % section) ValueError: Remote-Section has invalid format: u'remotes'
2016-09-11doc(limitations): be very clear about known issuesSebastian Thiel
Fixes #508
2016-09-11fix(Head): checkout() handles detached headSebastian Thiel
It's not optimal, as we can now return one of two types which are only compatible in the most basic ways. However, it is better than before, I presume. Fixes #510
2016-09-11fix(repo): make it serializable with pickleSebastian Thiel
It's entirely untested if this repo still does the right thing, but I'd think it does. Fixes #504
2016-09-11fix(tag): resolve `commit` objects deeply.Sebastian Thiel
As TagObjects can point to other TagObjects, we need to keep going in order to resolve the final commit. Fixes #503
2016-08-24Update Remotes section (#502)Forrest Hopkins
Update Remotes section The Remotes section was missing some pretty important info.
2016-08-21fix(commit): handle gpgsig properlySebastian Thiel
Assure that gpgsig is not initialized with None to allow the automatic deserialization to kick in. Fixes #500
2016-08-19Updated unittest.Phil Elson
2016-08-19Allowed remotes to have no refs.Phil Elson
2016-08-17use $GIT_DIR when setPiotr Gaczkowski
2016-08-02Merge pull request #496 from haizaar/masterSebastian Thiel
is_dirty supports path. Fixes #482.
2016-08-02refactor(cmd): streamline usage of creationflagsSebastian Thiel
2016-08-01is_dirty supports path. Fixes #482.Zaar Hai
2016-08-01fix flake8 problemsBarry Scott
2016-08-01add test to detect the corrupt logBarry Scott
- add a second line to commit messages with the "BAD MESSAGE" text - read in the log and confirm that the seond line is not in the log file
2016-08-01creationflags must be set to 0 on non-windows platformsBarry Scott
2016-08-01Must pass creationflags as a keyworkBarry Scott
2016-07-29Prevent CMD windows being shown when starting git in a subprocess.Barry Scott
This fixes a UI problem with using GitPython from a GUI python probgram. Each repo that is opened creates a git cat-file processs and that provess will create a console window with out this change.
2016-07-29Merge remote-tracking branch 'upstream/master'Barry Scott
2016-07-23Merge pull request #490 from bertwesarg/patch-1Sebastian Thiel
Add missing newline when writing a symbolic ref.
2016-07-23fix(diff): use explicit change-type if possibleSebastian Thiel
That way, we do not have to figure the change type out by examining the diff object. It's implemented in a way that should yield more desireable results as we keep the change-type that git is providing us with. Fixes #493
2016-07-19Use binary string constant for concatenation.Bert Wesarg
2016-07-19Add missing newline when writing a symbolic ref.Bert Wesarg
2016-07-17fix(blame): lazily fetch full commit messageSebastian Thiel
That way, we will not only get the summary line contained in the blame, but fetch the full message. This is more costly than the previous implementation allowed it to be, but being less surprising/correct certainly is the preferred behaviour here. Fixes #485
2016-07-17chore(version-up): v2.0.72.0.7Sebastian Thiel
2016-07-12Merge branch 'master' of https://github.com/gitpython-developers/GitPythonBarry Scott
2016-06-20Commit without executing hooks, fixes #468Peter Bengtsson
2016-06-20fix(remote): lazy PushInfo.old_commit initializationSebastian Thiel
We will now populate the old_commit on demand, which will allow us to keep going even if the given commit does not exist locally. Fixes #461
2016-06-20Merge branch 'master' into fix-non-ascii-chars-in-status-linesfix-non-ascii-chars-in-status-linesSebastian Thiel
2016-06-20Merge branch 'master' into fix-non-ascii-chars-in-status-linesSebastian Thiel
2016-06-20Merge pull request #474 from gitpython-developers/keep-raw-bytes-on-diffsSebastian Thiel
Store raw path bytes in Diff instances
2016-06-15Fix issue #470Barry Warsaw
2016-06-14Store raw path bytes in Diff instancesVincent Driessen
Previously, the following fields on Diff instances were assumed to be passed in as unicode strings: - `a_path` - `b_path` - `rename_from` - `rename_to` However, since Git natively records paths as bytes, these may potentially not have a valid unicode representation. This patch changes the Diff instance to instead take the following equivalent fields that should be raw bytes instead: - `a_rawpath` - `b_rawpath` - `raw_rename_from` - `raw_rename_to` NOTE ON BACKWARD COMPATIBILITY: The original `a_path`, `b_path`, etc. fields are still available as properties (rather than slots). These properties now dynamically decode the raw bytes into a unicode string (performing the potentially destructive operation of replacing invalid unicode chars by "�"'s). This means that all code using Diffs should remain backward compatible. The only exception is when people would manually construct Diff instances by calling the constructor directly, in which case they should now pass in bytes rather than unicode strings. See also the discussion on https://github.com/gitpython-developers/GitPython/pull/467
2016-06-14Fix for parsing non-ASCII chars in status linesVincent Driessen
2016-06-14Python 2.6 compatVincent Driessen
2016-06-14fix(test_docs): skip master-dependent assertionSebastian Thiel
It usually fails on branches, which doesn't help assessing PRs.
2016-06-14Merge pull request #446 from guyzmo/updating_remote_url_handlingSebastian Thiel
Adding support for git remote set-url/get-url API to Remote
2016-06-14Merge pull request #467 from ↵Sebastian Thiel
gitpython-developers/fix-dont-choke-on-invalid-unicode-paths Don't choke on (legitimately) invalidly encoded Unicode paths
2016-06-14fix(flake): misc whitespace fixesSebastian Thiel
2016-06-13fix flake8 found problemsBarry Scott
2016-06-13Fix corruption of the ref logs fileBarry Scott
It must only have the first line of the commit messages, not the while multiple line log.
2016-06-13fix(cmd): allow any kind of status messageSebastian Thiel
I see no need in verifying the status code. It's enough to just get the error.
2016-06-13fix(misc): various cleanupSebastian Thiel
Just went through all changes and adjusted them to the best of my abilities. As there are no tests to claim otherwise, I believe this is correct enough. However, it becomes evident that it's no longer possible to just make changes without backing them with a respective test.
2016-06-13Merge branch 'pr-cmd-raise-with-stderr-on-error' of ↵Sebastian Thiel
https://github.com/barry-scott/GitPython into barry-scott-pr-cmd-raise-with-stderr-on-error
2016-06-13fix(repo): prevent error messages from being swallowedSebastian Thiel
This issue must have rosen from `to_progress_instance()` being inserted in a spot where `None` was a legit value. Fixes #462