Skip to content

Commit

Permalink
Use git gc to reduce disk usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rwstauner committed Jul 10, 2024
1 parent 600f3c1 commit a49ade2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions continuous_reporting/gh_tasks/commit_benchmark_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ git add raw_benchmark_data
git commit -m "`uname -p` benchmark results" || echo "Commit is empty?"
git push

git gc

echo "Committed and pushed benchmark data successfully."
4 changes: 4 additions & 0 deletions continuous_reporting/gh_tasks/git_update_yjit_metrics_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ git fetch current_repo
git clean -ffdx
git restore -SW .
git checkout current_repo/$YJIT_METRICS_NAME

# All this ref switching can leave cruft in the git database.
# Clean it to keep disk space under control.
git gc

0 comments on commit a49ade2

Please sign in to comment.