Browse Source

Merge branch 'lr/freshen-file-fix'

The code that refreshes the last access and modified time of
on-disk packfiles and loose object files have been updated.

* lr/freshen-file-fix:
  freshen_file(): use NULL `times' for implicit current-time
maint
Junio C Hamano 5 years ago
parent
commit
51a68dd287
  1. 4
      sha1-file.c

4
sha1-file.c

@ -881,9 +881,7 @@ void prepare_alt_odb(struct repository *r) @@ -881,9 +881,7 @@ void prepare_alt_odb(struct repository *r)
/* Returns 1 if we have successfully freshened the file, 0 otherwise. */
static int freshen_file(const char *fn)
{
struct utimbuf t;
t.actime = t.modtime = time(NULL);
return !utime(fn, &t);
return !utime(fn, NULL);
}

/*

Loading…
Cancel
Save