Closed
Description
If the remote branch get deleted I get the following error:
Marvin@marvin-note ~/contaazul
$ git up
Fetching origin
develop up to date
feature/API-2 Traceback (most recent call last):
File "/usr/bin/git-up", line 8, in <module>
load_entry_point('git-up==0.1', 'console_scripts', 'git-up')()
File "/usr/bin/gitup.py", line 294, in run
GitUp().run()
File "/usr/bin/gitup.py", line 103, in run
self.rebase_all_branches()
File "/usr/bin/gitup.py", line 138, in rebase_all_branches
if remote.commit.hexsha == branch.commit.hexsha:
File "/usr/lib/python2.7/site-packages/git/refs/symbolic.py", line 168, in _get_commit
obj = self._get_object()
File "/usr/lib/python2.7/site-packages/git/refs/symbolic.py", line 161, in _get_object
return Object.new_from_sha(self.repo, hex_to_bin(self.dereference_recursive(self.repo, self.path)))
File "/usr/lib/python2.7/site-packages/git/refs/symbolic.py", line 115, in dereference_recursive
hexsha, ref_path = cls._get_ref_info(repo, ref_path)
File "/usr/lib/python2.7/site-packages/git/refs/symbolic.py", line 142, in _get_ref_info
raise ValueError("Reference at %r does not exist" % ref_path)
ValueError: Reference at 'refs/remotes/origin/feature/API-2' does not exist