Skip to content

Commit

Permalink
Merge pull request #831 from HL7/jct-publication
Browse files Browse the repository at this point in the history
delete .git folder from temp
  • Loading branch information
grahamegrieve authored Dec 25, 2023
2 parents 7ba05d9 + f4dabfd commit 176865e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,13 @@ private void doPublish(File fSource, File fOutput, JsonObject qa, String destina

// 2. make a copy of what we built
System.out.println("Keep a copy of the build directory at "+Utilities.path(fRoot.getAbsolutePath(), "ig-build-zips", npm.name()+"#"+npm.version()+".zip"));

// 2.1. Delete the ".git" subfolder
File gitFolder = new File(temp, ".git");
if (gitFolder.exists()) {
FileUtils.deleteDirectory(gitFolder);
}

zipFolder(temp, Utilities.path(fRoot.getAbsolutePath(), "ig-build-zips", npm.name()+"#"+npm.version()+".zip"));

System.out.println("");
Expand Down

0 comments on commit 176865e

Please sign in to comment.