From 28725e6cbcd9adba3b1e07d1862fa3735b18b84d Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Tue, 23 Apr 2019 22:08:02 -0400 Subject: Respect blobs-ignore when removing blobs --- libs/git | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libs/git') diff --git a/libs/git b/libs/git index b5b2ffdb..429d4783 100755 --- a/libs/git +++ b/libs/git @@ -361,18 +361,12 @@ git_project_prepare_blobs() { shift local repository_path=$(git_project_repository_path "$repository") - local blobs_path=$(project_blobs_path "$project" "$@") local blob - if ! [[ -f "$blobs_path" ]] - then - return - fi - - while read blob + while read -r blob do git_remove "$repository_path" "$blob" - done < "$blobs_path" + done < <(project_blobs "$project" "$@") if ! git_diff_staged_check "$repository_path" then -- cgit v1.2.3-70-g09d2