Skip to content

Commit c1481af

Browse files
committed
Allowed remotes to have no refs.
1 parent 657cd7e commit c1481af

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ Contributors are:
1414
-Sebastian Thiel <byronimo _at_ gmail.com>
1515
-Jonathan Chu <jonathan.chu _at_ me.com>
1616
-Vincent Driessen <me _at_ nvie.com>
17+
-Phil Elson <pelson _dot_ pub _at_ gmail.com>
1718

1819
Portions derived from other open source works and are clearly marked.

git/remote.py

-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,6 @@ def refs(self):
511511
remote.refs.master # yields RemoteReference('/refs/remotes/origin/master')"""
512512
out_refs = IterableList(RemoteReference._id_attribute_, "%s/" % self.name)
513513
out_refs.extend(RemoteReference.list_items(self.repo, remote=self.name))
514-
assert out_refs, "Remote %s did not have any references" % self.name
515514
return out_refs
516515

517516
@property

0 commit comments

Comments
 (0)