From 0ea28b9155f573d5c0fd9c8bae96db44e806f748 Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Tue, 14 Sep 2021 11:06:06 +0200 Subject: [PATCH] Improve error message to give possible explanations about why the command failed --- lib/git-subrepo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git-subrepo b/lib/git-subrepo index 05498c7b..093e2a3b 100755 --- a/lib/git-subrepo +++ b/lib/git-subrepo @@ -1576,7 +1576,7 @@ get-upstream-head-branch() { OUT=true RUN git ls-remote --symref "$subrepo_remote" remotes=$output [[ $remotes ]] || - error "Failed to 'git ls-remote --symref $subrepo_remote'." + error "Failed to 'git ls-remote --symref $subrepo_remote'.\nPlease make sure the repository exists, is not empty, and that you have access rights to it." # 'ref: refs/heads/master HEAD' branch=$(