aboutsummaryrefslogtreecommitdiff
path: root/git/refs/symbolic.py
AgeCommit message (Collapse)Author
2019-10-15renamed unused variablesPratik Anurag
2018-03-18Rewrite unnecessary dict/list/tuple calls as literalsHugo
2017-10-13recognize the new packed-ref header formatBrenda J. Butler
as long as line contains "peeled", accept it fixes the PackingType of packed-Refs not understood: # pack-refs with: peeled fully-peeled sorted problem
2017-08-22worktrees: make non-packed refs also work correctly.Peter Jones
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>
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-02-25fix(refs): don't assume linux path separatorSebastian Thiel
Instead, work with os.sep. Fixes #586
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-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-07-19Use binary string constant for concatenation.Bert Wesarg
2016-07-19Add missing newline when writing a symbolic ref.Bert Wesarg
2016-03-28fix(refs): don't raise StopIterationSebastian Thiel
Fixes #394
2015-07-26Ensure file resources are releasedDavid García Garzón
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-08Now finally, tests should be working on travis too.Sebastian Thiel
Now handling the new exception BadName as well
2015-01-06Make flake8 happySebastian Thiel
2015-01-06test_refs 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-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-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
2014-11-19Fixes https://github.com/gitpython-developers/GitPython/issues/130Sebastian Thiel
2014-11-19Applied autopep8Sebastian Thiel
Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
2014-11-19Added SymbolicReference.is_remote() utility method.Sebastian Thiel
Based on the functionality proposed in https://github.com/gitpython-developers/GitPython/pull/101 [ci skip]
2014-11-17Assure API remains backwards compatible; update API docsSebastian Thiel
2014-11-17Merge branch '0.3' of https://github.com/firm1/GitPython into firm1-0.3Sebastian Thiel
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
2014-11-16pep8 linting (trailing whitespace)Antoine Musso
W291 trailing whitespace
2014-11-16pep8 linting (double spaces before comment)Antoine Musso
E261 at least two spaces before inline comment
2014-11-16pep8 linting (whitespace before/after)Antoine Musso
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
2014-11-16pep8 linting (blank lines expectations)Antoine Musso
E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
2014-11-16pep8 linting (whitespaces)Antoine Musso
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
2014-03-24Update symbolic.pyfirm1
2014-02-09tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel
probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
2011-07-04Basic remote functionality moved to Reference type, as it can in fact be ↵Sebastian Thiel
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
2011-06-08relaxed implementation when comparing symbolic references against other ↵Sebastian Thiel
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
2011-06-08log: non-existing logs no longer throw an exception, but are ignored. Fixed ↵Sebastian Thiel
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 \!
2010-11-26Commit.create_from_tree used a now renamed keyword parameter - no test-case ↵Sebastian Thiel
ever runs this code, which is still an issue
2010-11-25Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel
adjusted