Merge branch 'jc/warn-pathless-add-finishing-touches'
[gitweb.git] / builtin / add.c
index d4b40f2b7a9dbdabcb0133d84b29d8ab281d1baf..63df5f6938c8ab7f2355868e5c1a3affbf67fe7e 100644 (file)
@@ -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;