Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin/checkout: add --recurse-submodules switch
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index 2c727ef499c0fa7b44c0cf1890cc44427dc8921f..b17835aed65df04eb790ff3139203a7467a891db 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-616,7
+616,7
@@
static int grep_submodule(struct grep_opt *opt, const unsigned char *sha1,
{
if (!is_submodule_initialized(path))
return 0;
- if (!is_submodule_populated
(path
)) {
+ if (!is_submodule_populated
_gently(path, NULL
)) {
/*
* If searching history, check for the presense of the
* submodule's gitdir before skipping the submodule.