Skip to content

Commit 73c7f5e

Browse files
author
Junio C Hamano
committed
Merge branch 'maint'
* maint: Make sure the empty tree exists when needed in merge-recursive. Don't use memcpy when source and dest. buffers may overlap no need to install manpages as executable
2 parents 4cfeccc + 9abd46a commit 73c7f5e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Documentation/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ man7: $(DOC_MAN7)
5656

5757
install: man
5858
$(INSTALL) -d -m755 $(DESTDIR)$(man1dir) $(DESTDIR)$(man7dir)
59-
$(INSTALL) $(DOC_MAN1) $(DESTDIR)$(man1dir)
60-
$(INSTALL) $(DOC_MAN7) $(DESTDIR)$(man7dir)
59+
$(INSTALL) -m644 $(DOC_MAN1) $(DESTDIR)$(man1dir)
60+
$(INSTALL) -m644 $(DOC_MAN7) $(DESTDIR)$(man7dir)
6161

6262

6363
#

index-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static void flush(void)
9696
if (output_fd >= 0)
9797
write_or_die(output_fd, input_buffer, input_offset);
9898
SHA1_Update(&input_ctx, input_buffer, input_offset);
99-
memcpy(input_buffer, input_buffer + input_offset, input_len);
99+
memmove(input_buffer, input_buffer + input_offset, input_len);
100100
input_offset = 0;
101101
}
102102
}

merge-recursive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ static int merge(struct commit *h1,
12381238

12391239
tree->object.parsed = 1;
12401240
tree->object.type = OBJ_TREE;
1241-
hash_sha1_file(NULL, 0, tree_type, tree->object.sha1);
1241+
write_sha1_file(NULL, 0, tree_type, tree->object.sha1);
12421242
merged_common_ancestors = make_virtual_commit(tree, "ancestor");
12431243
}
12441244

0 commit comments

Comments
 (0)