From c253c04138d62364a7865aef2d43a5e63199fa4b Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sun, 30 Oct 2022 15:35:31 -0700 Subject: [PATCH] models: wrap long lines Signed-off-by: David Aguilar --- cola/models/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cola/models/main.py b/cola/models/main.py index f8912531..b212d3e8 100644 --- a/cola/models/main.py +++ b/cola/models/main.py @@ -152,7 +152,8 @@ class MainModel(QtCore.QObject): err = None refs = self.git.git_path('refs', 'heads') if core.exists(refs) and core.listdir(refs): - # "git rev-parse" will fail when the safe.directory protection is active. + # "git rev-parse" exits with a non-zero exit status when the + # safe.directory protection is active. status, _, err = self.git.rev_parse('HEAD') is_valid = status == 0 if is_valid: -- 2.11.4.GIT