Skip to content
/ bits Public

Commit a5ea404

Browse files
committed
Remove git hooks from bare repos in deps FOD
1 parent 5b1b982 commit a5ea404

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkgs/bits-uberjar/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@
123123
# Remove .git directories from libs (but keep _repos which are bare repos)
124124
find $out/gitlibs/libs -type d -name '.git' -prune -exec rm -rf {} \; 2>/dev/null || true
125125
126+
# Remove hooks from bare repos (contain bash shebangs)
127+
find $out/gitlibs/_repos -type d -name 'hooks' -prune -exec rm -rf {} \; 2>/dev/null || true
128+
126129
# Strip store refs from all files
127130
find $out -type f -print0 | while IFS= read -r -d "" f; do
128131
remove-references-to -t ${bash} "$f" 2>/dev/null || true

0 commit comments

Comments
 (0)