summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/git-access.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/git-access.c b/core/git-access.c
index be1f39120..891ecf1e2 100644
--- a/core/git-access.c
+++ b/core/git-access.c
@@ -505,8 +505,10 @@ static int try_to_update(git_repository *repo, git_remote *origin, git_reference
remote_id = git_reference_target(remote);
if (!local_id || !remote_id) {
- local_id && SSRF_INFO("git storage: unable to get local SHA");
- remote_id && SSRF_INFO("git storage: unable to get remote SHA");
+ if (!local_id)
+ SSRF_INFO("git storage: unable to get local SHA");
+ if (!remote_id)
+ SSRF_INFO("git storage: unable to get remote SHA");
if (is_subsurface_cloud)
goto cloud_data_error;
else