summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-07-24 21:50:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-24 21:50:43 (GMT)
commit392b3dde513083b9975c990cd2cf410d2846b941 (patch)
tree61688f2addc58bfd88ebeb8698c67a552f593a9a /submodule.c
parenta9e7fe96ccac50628ad032a99bc514f5ed7bf09c (diff)
parentba95d4e4bdf03badef6bc5c44bc059464f3e79d3 (diff)
downloadgit-392b3dde513083b9975c990cd2cf410d2846b941.zip
git-392b3dde513083b9975c990cd2cf410d2846b941.tar.gz
git-392b3dde513083b9975c990cd2cf410d2846b941.tar.bz2
Merge branch 'sb/submodule-move-head-error-msg'
"git checkout --recurse-submodules another-branch" did not report in which submodule it failed to update the working tree, which resulted in an unhelpful error message. * sb/submodule-move-head-error-msg: submodule.c: report the submodule that an error occurs in
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.c b/submodule.c
index d3a9aab..2a63818 100644
--- a/submodule.c
+++ b/submodule.c
@@ -1682,7 +1682,7 @@ int submodule_move_head(const char *path,
argv_array_push(&cp.args, new_head ? new_head : empty_tree_oid_hex());
if (run_command(&cp)) {
- ret = -1;
+ ret = error(_("Submodule '%s' could not be updated."), path);
goto out;
}