Skip to content

Commit 95e1fbd

Browse files
committed
Run git_remove_alias_tree before gem uninstall git-status-tree
Gem.pre_uninstall on the other hand works fine.
1 parent e08d6ba commit 95e1fbd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/rubygems_plugin.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Gem.pre_uninstall do |uninstaller|
2+
bin_dir = uninstaller.spec.bin_dir
3+
git_remove_alias_tree = File.join(bin_dir, 'git_remove_alias_tree')
4+
puts `#{git_remove_alias_tree}`
5+
end

0 commit comments

Comments
 (0)