Skip to content

Commit 1fc7562

Browse files
committed
Fix uncolored diff heading when color is auto
1 parent b18a938 commit 1fc7562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-diff-ansible-vault

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ git_diff_ansible_vault() {
252252
| grep -E '^\+[^\+]|\$ANSIBLE_VAULT' | sed -E 's/^([^+ ]*)[+ ]/\1/')
253253

254254
# print the diff heading from git diff so we get the real paths
255-
$GIT_CMD -c color.ui=$COLOR diff $GIT_DIFF_ARGS $REVISION $FILE_PATH | head -n 4
255+
echo "$($GIT_CMD -c color.ui=$COLOR diff $GIT_DIFF_ARGS $REVISION $FILE_PATH)" | head -n 4
256256

257257
# print the diff body from the opened vault diff
258258
diff -u \

0 commit comments

Comments
 (0)