]> git.ipfire.org Git - thirdparty/git.git/blobdiff - environment.c
grep: search history of moved submodules
[thirdparty/git.git] / environment.c
index 0935ec696e530e1b610c71eda0a0a7072d1d656f..9b943d2d5bbc109cabd24f0f2efea7a5e79875a5 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)