diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/add.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/add.c b/builtin/add.c index d4b40f2b7a..63df5f6938 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -542,6 +542,8 @@ int cmd_add(int argc, const char **argv, const char *prefix) refresh(verbose, pathspec); goto finish; } + if (implicit_dot && prefix) + refresh_cache(REFRESH_QUIET); if (pathspec) { int i; |