Add a Git hook to update Ruby deps in ~/repos/alexwlchan.net
- ID
f83ba4d- date
2025-05-03 09:39:07+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
4d262ea- message
Add a Git hook to update Ruby deps in ~/repos/alexwlchan.net- changed files
1 file, 25 additions
Changed files
git/gm (643) → git/gm (1263)
diff --git a/git/gm b/git/gm
index 348400e..a78882e 100755
--- a/git/gm
+++ b/git/gm
@@ -24,3 +24,28 @@ $(dirname "$0")/gp
echo ""
cleanup_branches
+
+if [[ $(groot) = ~/repos/alexwlchan.net ]]
+then
+ echo ""
+
+ print_info "-> Updating Ruby dependencies"
+
+ echo ""
+
+ print_info "-> bundle install"
+ bundle install \
+ | grep -v Using \
+ | grep -v "to see where a bundled gem is installed." \
+ | grep -v "you directly depend on are looking for funding." \
+ | grep -v "bundle fund"
+
+ echo ""
+
+ print_info "-> BUNDLE_WITH=lint bundle install"
+ BUNDLE_WITH=lint bundle install \
+ | grep -v Using \
+ | grep -v "to see where a bundled gem is installed." \
+ | grep -v "you directly depend on are looking for funding." \
+ | grep -v "bundle fund"
+fi