diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-12-03 22:11:34 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-12-03 22:11:34 +0100 |
commit | 12276fedec49c855401262f0929f088ebf33d2cf (patch) | |
tree | fd1adacb07ff59d279936dffc9c879bdecb82360 /lib/git/utils.py | |
parent | 7d00fa4f6cad398250ce868cef34357b45abaad3 (diff) | |
download | gitpython-12276fedec49c855401262f0929f088ebf33d2cf.tar.gz |
refs: Implemented low-level (Symbolic)Reference renaming as some references cannot be reamed using the git-branch command if they are not in refs/heads, that is in a non-standard refs folder
Diffstat (limited to 'lib/git/utils.py')
-rw-r--r-- | lib/git/utils.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/git/utils.py b/lib/git/utils.py index 433f96d5..27ce0804 100644 --- a/lib/git/utils.py +++ b/lib/git/utils.py @@ -362,18 +362,4 @@ class Iterable(object): """ raise NotImplementedError("To be implemented by Subclass") -def needs_working_tree(func): - """ - Decorator assuring the wrapped method may only run if the repository has a - working tree, hence it is not bare. - """ - def check_default_index(self, *args, **kwargs): - if self.repo.working_tree_dir is None: - raise AssertionError( "Cannot call %r bare git repositories" % func.__name__ ) - return func(self, *args, **kwargs) - # END wrpaper method - - check_default_index.__name__ = func.__name__ - return check_default_index - |