зеркало из https://github.com/microsoft/git.git
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
This commit is contained in:
Коммит
51a68dd287
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче