Skip to content

Commit cc75280

Browse files
committed
Use strict mode for ls-files only when a specific context is set, not all the time
1 parent e03ef7f commit cc75280

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

transcrypt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,14 @@ upgrade_transcrypt() {
10301030
list_files() {
10311031
if [[ $IS_BARE == 'false' ]]; then
10321032
cd "$REPO" >/dev/null || die 1 'could not change into the "%s" directory' "$REPO"
1033-
_list_encrypted_files true
1033+
1034+
if [[ -z "$CONTEXT_CRYPT_SUFFIX" ]]; then
1035+
# Non-strict listing of files when context is unset / default
1036+
_list_encrypted_files
1037+
else
1038+
# Strict listing of files when a specific context is set
1039+
_list_encrypted_files true
1040+
fi
10341041
fi
10351042
}
10361043

0 commit comments

Comments
 (0)