summaryrefslogtreecommitdiff
path: root/git/refs
Commit message (Collapse)AuthorAgeFilesLines
* Ensure file resources are releasedDavid García Garzón2015-07-261-17/+17
|
* Always add '--' to git resetJames E. Blair2015-07-171-6/+1
| | | | | | | | | | | | | | | | | | | | | | 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.
* Assure to not iterate packed-refs file, ever.Sebastian Thiel2015-02-191-0/+3
| | | | Related to #252
* Overhauled all tutorials, and placed them in a unit-test.Sebastian Thiel2015-01-221-1/+1
| | | | | | That way they are protected from regression. Fixes #239
* Added advance usage examples to tutorial and made minor fixes.Sebastian Thiel2015-01-211-1/+4
| | | | | | GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
* Fixed some doc strings to build correctly with sphinxSebastian Thiel2015-01-142-1/+3
| | | | | | Fixes #7 [ci skip]
* Now finally, tests should be working on travis too.Sebastian Thiel2015-01-081-3/+6
| | | | Now handling the new exception BadName as well
* Made improvements to assure test-cases don't leak file handlesSebastian Thiel2015-01-071-0/+1
| | | | | | | | 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
* Made sure commits accept unicode or unicode charactersSebastian Thiel2015-01-071-3/+14
|
* fix pep8firm12015-01-071-2/+8
|
* add support of utf8firm12015-01-071-5/+2
|
* Fixed log implementation for py3Sebastian Thiel2015-01-061-0/+1
| | | | When merging, I accidentally removed the py3 adjustments
* Merge branch 'py3' into 0.3Sebastian Thiel2015-01-066-27/+43
|\ | | | | | | | | Conflicts: git/refs/log.py
| * Make flake8 happySebastian Thiel2015-01-062-2/+2
| |
| * test_repo worksSebastian Thiel2015-01-061-0/+1
| |
| * test_refs worksSebastian Thiel2015-01-061-2/+4
| |
| * test_reflog worksSebastian Thiel2015-01-061-9/+13
| |
| * test_commit works once againSebastian Thiel2015-01-051-1/+1
| |
| * Intermediate commit: test_config and test_actor worksSebastian Thiel2015-01-051-6/+9
| | | | | | | | | | Kind of tackling the tasks step by step, picking low-hanging fruit first, or the ones that everyone depends on
| * Fixed io types to make tests work on PY2 once again.py3Sebastian Thiel2015-01-051-1/+1
| | | | | | | | Now it's about going through PY3 issues
| * Dum brute force conversion of all types.Sebastian Thiel2015-01-042-2/+7
| | | | | | | | | | | | However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
| * initial set of adjustments to make (most) imports work.Sebastian Thiel2015-01-045-9/+10
| | | | | | | | More to come, especially when it's about strings
* | BF: allow log line to have no msg (Close #225)Yaroslav Halchenko2015-01-051-5/+9
|/
* Removed unnecessary (non-gitpython) tests and fixed flake80.3.3Sebastian Thiel2015-01-043-14/+5
|
* Replaced ordered dict with standard version; used logging moduleSebastian Thiel2015-01-041-2/+2
| | | | All performance tests still print to stderr, but do so in a py3 compatible way
* Bumped version, updated changelog, reduced code smellSebastian Thiel2015-01-045-20/+13
| | | | | There is more work to do though, as many imports are still incorrect. Also, there are still print statements
* Another travis debugging commitSebastian Thiel2015-01-041-2/+0
|
* Intermediate debug commit for travis ... do not useSebastian Thiel2015-01-041-0/+2
|
* encode name of actor to utf-8Kenji Fujiwara2014-12-121-1/+2
|
* Fixes https://github.com/gitpython-developers/GitPython/issues/130Sebastian Thiel2014-11-191-1/+3
|
* Applied autopep8Sebastian Thiel2014-11-194-76/+79
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* Added SymbolicReference.is_remote() utility method.Sebastian Thiel2014-11-192-1/+5
| | | | | | Based on the functionality proposed in https://github.com/gitpython-developers/GitPython/pull/101 [ci skip]
* Assure API remains backwards compatible; update API docsSebastian Thiel2014-11-171-3/+9
|
* Merge branch '0.3' of https://github.com/firm1/GitPython into firm1-0.3Sebastian Thiel2014-11-172-6/+10
|\ | | | | | | | | | | | | | | | | | | Fixed most pressing issues, more to come in next commit as we introduced a regression here. Conflicts: git/objects/commit.py git/refs/log.py git/refs/symbolic.py
| * Update symbolic.pyfirm12014-03-241-1/+1
| |
| * correct log referencefirm12014-03-241-1/+1
| |
* | pep8 linting (trailing whitespace)Antoine Musso2014-11-166-73/+73
| | | | | | | | W291 trailing whitespace
* | pep8 linting (double spaces before comment)Antoine Musso2014-11-161-2/+2
| | | | | | | | E261 at least two spaces before inline comment
* | pep8 linting (whitespace before/after)Antoine Musso2014-11-166-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | E201 whitespace after '(' E202 whitespace before ')' E203 whitespace before ':' E225 missing whitespace around operator E226 missing whitespace around arithmetic operator E227 missing whitespace around bitwise or shift operator E228 missing whitespace around modulo operator E231 missing whitespace after ',' E241 multiple spaces after ',' E251 unexpected spaces around keyword / parameter equals
* | pep8 linting (blank lines expectations)Antoine Musso2014-11-166-10/+12
| | | | | | | | | | | | E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
* | pep8 linting (whitespaces)Antoine Musso2014-11-166-213/+211
| | | | | | | | | | | | | | | | | | | | | | W191 indentation contains tabs E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E271 multiple spaces after keyword W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file
* | Merge branch 'patch-1' of https://github.com/syabro/GitPython into ↵Sebastian Thiel2014-11-141-2/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | syabro-patch-1 Note by Sebastian Thiel: Was already fixed Conflicts: git/refs/reference.py
| * | Fixed NameErrorMaxim Syabro2014-02-101-1/+1
| | |
* | | Fixed undefined variable 'path' in ReferenceMichael Goerz2014-04-061-1/+1
| |/ |/|
* | tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel2014-02-097-1330/+1330
|/ | | | probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
* Basic remote functionality moved to Reference type, as it can in fact be ↵Sebastian Thiel2011-07-043-19/+43
| | | | useful for tags as well, which might end up somewhere in the refs/remotes space. Its not likely that it will ever be used on a pure Reference instance though, but it is the smallest common base
* refs: added constructor flag to allow refs to be instatiated from any path, ↵Sebastian Thiel2011-07-041-4/+6
| | | | including simple test
* Fixed critical issue that would cause a string to be passed to methods that ↵Sebastian Thiel2011-06-081-1/+1
| | | | expect a stream
* relaxed implementation when comparing symbolic references against other ↵Sebastian Thiel2011-06-081-1/+3
| | | | items which don't have a path. Fixed test_refs to work in all cases - it was previously dependent on the order of items returned by the file system
* log: non-existing logs no longer throw an exception, but are ignored. Fixed ↵Sebastian Thiel2011-06-082-6/+15
| | | | critical bug which caused packed-ref files to be written with native line endings, which made git fail to parse it. I wonder why I never noticed this before, or ignored it. Unbelievable \!