Handle case where new repo has no HEAD.

This commit is contained in:
voussoir 2021-01-22 23:28:15 -08:00
parent d4bcaf4398
commit 80cdc566cb
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -207,7 +207,11 @@ def checkup_committed():
def checkup_pushed():
details = dotdict.DotDict(default=None)
try:
my_head = git_rev_parse('@')
except subprocess.CalledProcessError as exc:
details.error = 'No HEAD'
return details
try:
remote_head = git_rev_parse('@{u}')