summaryrefslogtreecommitdiffstats
path: root/git-access.c
diff options
context:
space:
mode:
Diffstat (limited to 'git-access.c')
-rw-r--r--git-access.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-access.c b/git-access.c
index aa7d38776..6d14868b9 100644
--- a/git-access.c
+++ b/git-access.c
@@ -545,8 +545,12 @@ int sync_with_remote(git_repository *repo, const char *remote, const char *branc
#endif
// NOTE! A fetch error is not fatal, we just report it
if (error) {
- if (!is_subsurface_cloud)
+ if (is_subsurface_cloud)
+ report_error("Cannot sync with cloud server, working with offline copy");
+ else
report_error("Unable to fetch remote '%s'", remote);
+ if (verbose)
+ fprintf(stderr, "remote fetched failed (%s)\n", giterr_last()->message);
error = 0;
} else {
error = check_remote_status(repo, origin, remote, branch, rt);