提交 0eab8ca6 编写于 作者: B Brandon Casey 提交者: Junio C Hamano

git-relink: avoid hard linking in objects/info directory

git-relink is intended to search for packs and loose objects in
common between two repositories and to replace the one set with
hard links to the other. Files other than packs and loose objects
should not be touched, so add the "info" sub-directory to the
pattern of directory excludes.
Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 c1dcf7eb
......@@ -40,7 +40,7 @@
opendir(D,$master_dir . "objects/")
or die "Failed to open $master_dir/objects/ : $!";
my @hashdirs = grep !/^\.{1,2}$/, readdir(D);
my @hashdirs = grep { ($_ eq 'pack') || /^[0-9a-f]{2}$/ } readdir(D);
foreach my $repo (@dirs) {
$linked = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册