mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-01 02:53:51 -05:00
fixup! t/helper/test-chmtime: skip directories on Windows
This reverts commit fd9522aa9b.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
43ab88164c
commit
b244b5416d
@@ -134,21 +134,6 @@ int cmd__chmtime(int argc, const char **argv)
|
||||
}
|
||||
|
||||
if (utb.modtime != sb.st_mtime && utime(argv[i], &utb) < 0) {
|
||||
#ifdef GIT_WINDOWS_NATIVE
|
||||
if (S_ISDIR(sb.st_mode)) {
|
||||
/*
|
||||
* NEEDSWORK: The Windows version of `utime()`
|
||||
* (aka `mingw_utime()`) does not correctly
|
||||
* handle directory arguments, since it uses
|
||||
* `_wopen()`. Ignore it for now since this
|
||||
* is just a test.
|
||||
*/
|
||||
fprintf(stderr,
|
||||
("Failed to modify time on directory %s. "
|
||||
"Skipping\n"), argv[i]);
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
fprintf(stderr, "Failed to modify time on %s: %s\n",
|
||||
argv[i], strerror(errno));
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user