refs.c: kill register_ref_store(), add register_submodule_ref_store()
[gitweb.git] / dir.c
diff --git a/dir.c b/dir.c
index 2fe7acbcf2ce185a03421e7fd38bd34181c7d27a..837ff965a470e74028fce6019f4584e55dcf445c 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -2767,8 +2767,8 @@ void connect_work_tree_and_git_dir(const char *work_tree_, const char *git_dir_)
 {
        struct strbuf file_name = STRBUF_INIT;
        struct strbuf rel_path = STRBUF_INIT;
-       char *git_dir = real_pathdup(git_dir_);
-       char *work_tree = real_pathdup(work_tree_);
+       char *git_dir = real_pathdup(git_dir_, 1);
+       char *work_tree = real_pathdup(work_tree_, 1);
 
        /* Update gitfile */
        strbuf_addf(&file_name, "%s/.git", work_tree);