Skip to content

Commit b244b54

Browse files
jeffhostetlerdscho
authored andcommitted
fixup! t/helper/test-chmtime: skip directories on Windows
This reverts commit fd9522a. Signed-off-by: Jeff Hostetler <[email protected]>
1 parent 43ab881 commit b244b54

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

t/helper/test-chmtime.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,6 @@ int cmd__chmtime(int argc, const char **argv)
134134
}
135135

136136
if (utb.modtime != sb.st_mtime && utime(argv[i], &utb) < 0) {
137-
#ifdef GIT_WINDOWS_NATIVE
138-
if (S_ISDIR(sb.st_mode)) {
139-
/*
140-
* NEEDSWORK: The Windows version of `utime()`
141-
* (aka `mingw_utime()`) does not correctly
142-
* handle directory arguments, since it uses
143-
* `_wopen()`. Ignore it for now since this
144-
* is just a test.
145-
*/
146-
fprintf(stderr,
147-
("Failed to modify time on directory %s. "
148-
"Skipping\n"), argv[i]);
149-
continue;
150-
}
151-
#endif
152137
fprintf(stderr, "Failed to modify time on %s: %s\n",
153138
argv[i], strerror(errno));
154139
return 1;

0 commit comments

Comments
 (0)