Skip to content

Commit 605ed8a

Browse files
author
Edward Thomson
committed
Ignore shellcheck complaints about splitting
We're safe to split the git command output, and our time collection, since it's in a regular format.
1 parent 233ecf9 commit 605ed8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-recover

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ function find_unreachable() {
132132

133133
if [ $DO_FULL == 1 ]; then FULLNESS="--full"; fi
134134

135+
# shellcheck disable=SC2207
135136
BLOBS=($(git fsck --unreachable --no-reflogs "${FULLNESS}" \
136137
--no-progress 2>/dev/null | \
137138
sed -E -ne 's/^unreachable blob |dangling blob //p'))
@@ -208,6 +209,7 @@ function timestamp_to_s {
208209

209210
function sort_by_timestamp {
210211
# sort blobs in loose objects by their timestamp (packed blobs last)
212+
# shellcheck disable=SC2207
211213
BLOB_AND_TIMESTAMPS=($(for BLOB in "${BLOBS[@]}"; do
212214
LOOSE="${BLOB::2}/${BLOB:2}"
213215
TIME=$(file_time "$GIT_DIR/objects/$LOOSE" 2>/dev/null || true)

0 commit comments

Comments
 (0)