Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jl/submodule-status-failure-report' into maint
author
Junio C Hamano
<gitster@pobox.com>
Wed, 21 Dec 2011 19:42:45 +0000
(11:42 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 21 Dec 2011 19:42:45 +0000
(11:42 -0800)
* jl/submodule-status-failure-report:
diff/status: print submodule path when looking for changes fails
submodule.c
patch
|
blob
|
history
raw
(from parent 1:
f0b4fd4
)
diff --git
a/submodule.c
b/submodule.c
index 52cdcc6a6347a786deafad34efdb9dc4dc3670ff..68c1ba90b9e746b869830ec66a6f23437a4d7d08 100644
(file)
--- a/
submodule.c
+++ b/
submodule.c
@@
-689,7
+689,7
@@
unsigned is_submodule_modified(const char *path, int ignore_untracked)
cp.out = -1;
cp.dir = path;
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);
line = buf.buf;
@@
-714,7
+714,7
@@
unsigned is_submodule_modified(const char *path, int ignore_untracked)
close(cp.out);
if (finish_command(&cp))
- die("
git status --porcelain failed"
);
+ die("
'git status --porcelain' failed in submodule %s", path
);
strbuf_release(&buf);
return dirty_submodule;