Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script: Remove git log in submodules to save disk space #219

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

zpzigi754
Copy link
Collaborator

This PR partly addresses #218 by maintaining only the last git commit in the third-party submodules. The consumption would be reduced to around 21GB from around 83GB.

[before]

$ du -sh .git/modules/third-party/*
4.9G    .git/modules/third-party/android-kernel
4.9G    .git/modules/third-party/cca-rmm-acs
4.9G    .git/modules/third-party/gki-build
4.9G    .git/modules/third-party/kvmtool
4.9G    .git/modules/third-party/kvmtool-rim-measurer
4.9G    .git/modules/third-party/kvm-unit-tests
4.9G    .git/modules/third-party/mbedtls
4.9G    .git/modules/third-party/nw-linux
4.9G    .git/modules/third-party/optee-build
4.9G    .git/modules/third-party/realm-linux
4.9G    .git/modules/third-party/tf-a
4.9G    .git/modules/third-party/tf-a-rss
4.9G    .git/modules/third-party/tf-a-tests
4.9G    .git/modules/third-party/tf-rmm

[after]

$ du -sh .git/modules/third-party/*
798M	.git/modules/third-party/android-kernel
558M	.git/modules/third-party/cca-rmm-acs
1.5G	.git/modules/third-party/gki-build
557M	.git/modules/third-party/kvmtool
564M	.git/modules/third-party/kvmtool-rim-measurer
558M	.git/modules/third-party/kvm-unit-tests
561M	.git/modules/third-party/mbedtls
798M	.git/modules/third-party/nw-linux
556M	.git/modules/third-party/optee-build
798M	.git/modules/third-party/realm-linux
564M	.git/modules/third-party/tf-a
565M	.git/modules/third-party/tf-a-rss
557M	.git/modules/third-party/tf-a-tests
572M	.git/modules/third-party/tf-rmm

Currently, islet repository takes up a huge disk space (around 83GB)
because of multiple third-party submodules. This commit resolves this
issue by maintaining only the last git commit in the submodules. The
consumption would be reduced to around 21GB.

[before]
```
$ du -sh .git/modules/third-party/*
4.9G    .git/modules/third-party/android-kernel
4.9G    .git/modules/third-party/cca-rmm-acs
4.9G    .git/modules/third-party/gki-build
4.9G    .git/modules/third-party/kvmtool
4.9G    .git/modules/third-party/kvmtool-rim-measurer
4.9G    .git/modules/third-party/kvm-unit-tests
4.9G    .git/modules/third-party/mbedtls
4.9G    .git/modules/third-party/nw-linux
4.9G    .git/modules/third-party/optee-build
4.9G    .git/modules/third-party/realm-linux
4.9G    .git/modules/third-party/tf-a
4.9G    .git/modules/third-party/tf-a-rss
4.9G    .git/modules/third-party/tf-a-tests
4.9G    .git/modules/third-party/tf-rmm
```

[after]
```
$ du -sh .git/modules/third-party/*
798M	.git/modules/third-party/android-kernel
558M	.git/modules/third-party/cca-rmm-acs
1.5G	.git/modules/third-party/gki-build
557M	.git/modules/third-party/kvmtool
564M	.git/modules/third-party/kvmtool-rim-measurer
558M	.git/modules/third-party/kvm-unit-tests
561M	.git/modules/third-party/mbedtls
798M	.git/modules/third-party/nw-linux
556M	.git/modules/third-party/optee-build
798M	.git/modules/third-party/realm-linux
564M	.git/modules/third-party/tf-a
565M	.git/modules/third-party/tf-a-rss
557M	.git/modules/third-party/tf-a-tests
572M	.git/modules/third-party/tf-rmm
```
@zpzigi754 zpzigi754 linked an issue Oct 27, 2023 that may be closed by this pull request
@zpzigi754 zpzigi754 merged commit 304ca93 into islet-project:main Oct 30, 2023
7 checks passed
@zpzigi754 zpzigi754 deleted the remove-git-log branch October 30, 2023 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The project repository takes a lot of disk space
2 participants