зеркало из https://github.com/mozilla/gecko-dev.git
Restore directory after find.
This commit is contained in:
Родитель
9e1600956e
Коммит
21a6ef5183
|
@ -232,11 +232,16 @@ sub build_file_hash {
|
|||
|
||||
local $exclude_pat = join '|', @exclude_list; # Used in find_cvs_files
|
||||
|
||||
use Cwd;
|
||||
my $save_dir = cwd;
|
||||
|
||||
use File::Find;
|
||||
for my $include (@include_list) {
|
||||
$include .= ",v" unless -d "$cvs_root/$include";
|
||||
&find(\&find_cvs_files, "$cvs_root/$include");
|
||||
}
|
||||
|
||||
chdir $save_dir;
|
||||
}
|
||||
return \%bases, \%fullpath;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче