Skip to content

Commit a26c71e

Browse files
committed
set reproducible flag of make_archives from a specific variable
1 parent ddb9cae commit a26c71e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/tools/filetools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2775,7 +2775,8 @@ def get_source_tarball_from_git(filename, target_dir, git_config):
27752775

27762776
# Create archive
27772777
repo_path = os.path.join(tmpdir, repo_name)
2778-
archive_path = make_archive(repo_path, archive_name=filename, archive_dir=target_dir, reproducible=not keep_git_dir)
2778+
reproducible = not keep_git_dir # presence of .git directory renders repo unreproducible
2779+
archive_path = make_archive(repo_path, archive_name=filename, archive_dir=target_dir, reproducible=reproducible)
27792780

27802781
# cleanup (repo_name dir does not exist in dry run mode)
27812782
remove(tmpdir)

0 commit comments

Comments
 (0)