Code

diff-lib.c: fix misleading comments on oneway_diff()
[git.git] / builtin-reset.c
index ddf68d56a9b6a22da8576939da6c83c24db4b743..0fc0b0743f946dcfbab0257f9c69963a779ed38d 100644 (file)
@@ -108,7 +108,8 @@ static int update_index_refresh(int fd, struct lock_file *index_lock, int flags)
        if (read_cache() < 0)
                return error("Could not read index");
 
-       result = refresh_cache(flags) ? 1 : 0;
+       result = refresh_index(&the_index, (flags), NULL, NULL,
+                              "Unstaged changes after reset:") ? 1 : 0;
        if (write_cache(fd, active_cache, active_nr) ||
                        commit_locked_index(index_lock))
                return error ("Could not refresh index");