summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee6fc51)
raw | patch | inline | side by side (parent: ee6fc51)
author | Jens Lehmann <Jens.Lehmann@web.de> | |
Wed, 7 Dec 2011 21:50:14 +0000 (22:50 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Dec 2011 19:15:01 +0000 (11:15 -0800) |
diff and status run "git status --porcelain" inside each populated
submodule to see if it contains changes (unless told not to do so via
config or command line option). When that fails, e.g. due to a corrupt
submodule .git directory, it just prints "git status --porcelain failed"
or "Could not run git status --porcelain" without giving the user a clue
where that happened.
Add '"in submodule %s", path' to these error strings to tell the user
where exactly the problem occurred.
Reported-by: Seth Robertson <in-gitvger@baka.org>
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule to see if it contains changes (unless told not to do so via
config or command line option). When that fails, e.g. due to a corrupt
submodule .git directory, it just prints "git status --porcelain failed"
or "Could not run git status --porcelain" without giving the user a clue
where that happened.
Add '"in submodule %s", path' to these error strings to tell the user
where exactly the problem occurred.
Reported-by: Seth Robertson <in-gitvger@baka.org>
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c | patch | blob | history |
diff --git a/submodule.c b/submodule.c
index 3f851deb6afad564a786912a7bb4f9069d697ec7..8340b1956f904b40d24cf21dbe67451a42690436 100644 (file)
--- a/submodule.c
+++ b/submodule.c
cp.no_stdin = 1;
cp.out = -1;
if (start_command(&cp))
- die("Could not run git status --porcelain");
+ die("Could not run 'git status --porcelain' in submodule %s", path);
len = strbuf_read(&buf, cp.out, 1024);
close(cp.out);
if (finish_command(&cp))
- die("git status --porcelain failed");
+ die("'git status --porcelain' failed in submodule %s", path);
free(env[0]);
free(env[1]);