Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
write_file(): drop caller-supplied LF from calls to create a one-liner file
[gitweb.git]
/
submodule.c
diff --git
a/submodule.c
b/submodule.c
index 5519f11fdb1e078b5cebb3f38f295b0d2db29f92..4549c1baf4cb4d665ac53a2dd3aeb15029300d51 100644
(file)
--- a/
submodule.c
+++ b/
submodule.c
@@
-1103,7
+1103,7
@@
void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir)
/* Update gitfile */
strbuf_addf(&file_name, "%s/.git", work_tree);
- write_file(file_name.buf, "gitdir: %s
\n
",
+ write_file(file_name.buf, "gitdir: %s",
relative_path(git_dir, real_work_tree, &rel_path));
/* Update core.worktree setting */