We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9758cf + c105f56 commit 77a24b7Copy full SHA for 77a24b7
builtin/update-index.c
@@ -125,12 +125,16 @@ static int test_if_untracked_cache_is_supported(void)
125
struct stat st;
126
struct stat_data base;
127
int fd, ret = 0;
128
+ char *cwd;
129
130
strbuf_addstr(&mtime_dir, "mtime-test-XXXXXX");
131
if (!mkdtemp(mtime_dir.buf))
132
die_errno("Could not make temporary directory");
133
- fprintf(stderr, _("Testing mtime in '%s' "), xgetcwd());
134
+ cwd = xgetcwd();
135
+ fprintf(stderr, _("Testing mtime in '%s' "), cwd);
136
+ free(cwd);
137
+
138
atexit(remove_test_directory);
139
xstat_mtime_dir(&st);
140
fill_stat_data(&base, &st);
0 commit comments