aboutsummaryrefslogtreecommitdiff
path: root/git/refs
AgeCommit message (Collapse)Author
2017-07-01Repo: handle worktrees betterPeter Jones
This makes Repo("foo") work when foo/.git is a file of the form created by "git worktree add", i.e. it's a text file that says: gitdir: /home/me/project/.git/worktrees/bar and where /home/me/project/.git/ is the nominal gitdir, but /home/me/project/.git/worktrees/bar has this worktree's HEAD etc and a "gitdir" file that contains the path of foo/.git . Signed-off-by: Peter Jones <pjones@redhat.com>
2017-03-09Spelling fixesVille Skyttä
2017-02-25fix(refs): don't assume linux path separatorSebastian Thiel
Instead, work with os.sep. Fixes #586
2016-12-22chore(lint): fixSebastian Thiel
2016-12-22fix(tag): improve tag resolution handlingSebastian Thiel
The handling is similar, but the error message makes clear what is happening, and what can be done to handle such a case. Related to #561
2016-12-08fix(refs): handle quoted branch namesSebastian Thiel
Fixes #550
2016-10-22Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel
ankostis-cygwin
2016-10-20Fix some typosSantiago Castro
2016-10-16src: reduce needless deps to `gitdb.util`Kostis Anagnostopoulos
2016-10-16src: import os.path as ospKostis Anagnostopoulos
2016-10-04io: Wrap (probably) allconfig_writers in `with` blocksKostis Anagnostopoulos
2016-10-04src: No PyDev warningsKostis Anagnostopoulos
+ Mark all unused vars and other non-pep8 (PyDev) warnings + test_utils: + enable & fix forgotten IterableList looped path. + unittestize all assertions. + remote: minor fix progress dispatching unknown err-lines
2016-10-01io, #519: ALL open() --> with open()Kostis Anagnostopoulos
+ Some cases had restructuring of code.
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(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-07-29Merge remote-tracking branch 'upstream/master'Barry Scott
2016-07-19Use binary string constant for concatenation.Bert Wesarg
2016-07-19Add missing newline when writing a symbolic ref.Bert Wesarg
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-03-28fix(refs): don't raise StopIterationSebastian Thiel
Fixes #394
2015-07-26Ensure file resources are releasedDavid García Garzón
2015-07-17Always add '--' to git resetJames E. Blair
If a git repo has the misfortune to have a file with the name "HEAD" at the root level of the repo, git will return an error because it is unsure whether the file or ref is meant: File "/usr/local/lib/python2.7/dist-packages/git/refs/head.py", line 81, in reset self.repo.git.reset(mode, commit, add_arg, paths, **kwargs) File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 440, in <lambda> return lambda *args, **kwargs: self._call_process(name, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 834, in _call_process return self.execute(make_call(), **_kwargs) File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 627, in execute raise GitCommandError(command, status, stderr_value) GitCommandError: 'git reset --hard HEAD' returned with exit code 128 stderr: 'fatal: ambiguous argument 'HEAD': both revision and filename Use '--' to separate filenames from revisions' Implement its suggested fix by always passing '--' as an argument to "git reset". It is fine to pass it with no file specifiers afterwords. In that case, git knows that "HEAD" is always meant as the ref.
2015-02-19Assure to not iterate packed-refs file, ever.Sebastian Thiel
Related to #252
2015-01-22Overhauled all tutorials, and placed them in a unit-test.Sebastian Thiel
That way they are protected from regression. Fixes #239
2015-01-21Added advance usage examples to tutorial and made minor fixes.Sebastian Thiel
GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
2015-01-14Fixed some doc strings to build correctly with sphinxSebastian Thiel
Fixes #7 [ci skip]
2015-01-08Now finally, tests should be working on travis too.Sebastian Thiel
Now handling the new exception BadName as well
2015-01-07Made improvements to assure test-cases don't leak file handlesSebastian Thiel
At least leakage is considerably reduced. Additionally, a test-case was added which triggers failure if auto-disposal of resources wouldn't work. Fixes #60
2015-01-07Made sure commits accept unicode or unicode charactersSebastian Thiel
2015-01-07fix pep8firm1
2015-01-07add support of utf8firm1
2015-01-06Fixed log implementation for py3Sebastian Thiel
When merging, I accidentally removed the py3 adjustments
2015-01-06Merge branch 'py3' into 0.3Sebastian Thiel
Conflicts: git/refs/log.py
2015-01-06Make flake8 happySebastian Thiel
2015-01-06test_repo worksSebastian Thiel
2015-01-06test_refs worksSebastian Thiel
2015-01-06test_reflog worksSebastian Thiel
2015-01-05test_commit works once againSebastian Thiel
2015-01-05Intermediate commit: test_config and test_actor worksSebastian Thiel
Kind of tackling the tasks step by step, picking low-hanging fruit first, or the ones that everyone depends on
2015-01-05BF: allow log line to have no msg (Close #225)Yaroslav Halchenko
2015-01-05Fixed io types to make tests work on PY2 once again.Sebastian Thiel
Now it's about going through PY3 issues
2015-01-04Dum brute force conversion of all types.Sebastian Thiel
However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
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-04Replaced ordered dict with standard version; used logging moduleSebastian Thiel
All performance tests still print to stderr, but do so in a py3 compatible way
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
2015-01-04Another travis debugging commitSebastian Thiel
2015-01-04Intermediate debug commit for travis ... do not useSebastian Thiel
2014-12-12encode name of actor to utf-8Kenji Fujiwara
2014-11-19Fixes https://github.com/gitpython-developers/GitPython/issues/130Sebastian Thiel