]> git.ipfire.org Git - thirdparty/git.git/blobdiff - entry.c
refs: move dwim_ref() to header file
[thirdparty/git.git] / entry.c
diff --git a/entry.c b/entry.c
index 00b49033668160574c35555293c0c755cbafaeaa..449bd32dee555d9a52481e30226cd4450e80409e 100644 (file)
--- a/entry.c
+++ b/entry.c
@@ -113,8 +113,7 @@ static int fstat_output(int fd, const struct checkout *state, struct stat *st)
        /* use fstat() only when path == ce->name */
        if (fstat_is_reliable() &&
            state->refresh_cache && !state->base_dir_len) {
-               fstat(fd, st);
-               return 1;
+               return !fstat(fd, st);
        }
        return 0;
 }