]> git.ipfire.org Git - thirdparty/git.git/blobdiff - environment.c
urlmatch: enable normalization of URLs with globs
[thirdparty/git.git] / environment.c
index 4bce3eebfafa45d5781520781693029ffb317985..8a83101d04240b1b5b1471e68c810f822f68269d 100644 (file)
@@ -259,7 +259,7 @@ void set_git_work_tree(const char *new_work_tree)
                return;
        }
        git_work_tree_initialized = 1;
-       work_tree = xstrdup(real_path(new_work_tree));
+       work_tree = real_pathdup(new_work_tree);
 }
 
 const char *get_git_work_tree(void)