This is an automated email from the ASF dual-hosted git repository.

bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 61d7182a581 Stop .gitignore from hiding the UI Logs directory on macOS 
(#71475)
61d7182a581 is described below

commit 61d7182a581d2120412526b75c9567a2c7956cae
Author: Andrew Chang <[email protected]>
AuthorDate: Thu Aug 20 14:50:26 2026 +0400

    Stop .gitignore from hiding the UI Logs directory on macOS (#71475)
    
    git enables core.ignorecase on case-insensitive filesystems, which is the
    default on macOS. There the repo-wide `logs/` rule also matches
    airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/. Files already
    tracked in that directory keep working, so nothing looks broken until
    someone adds a new file there. Then `git add` prints an ignore hint and
    exits 1, and the file has to be force-added.
---
 .gitignore | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitignore b/.gitignore
index 84c96c1be71..ea5b9e46bd1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -298,6 +298,10 @@ _e2e_test_report.json
 # Allow logs folder in task-sdk-integration-tests (they logs folders are 
ignored above in general)
 !/task-sdk-integration-tests/logs/
 
+# On case-insensitive filesystems (macOS default, core.ignorecase=true) the 
`logs/` rule above
+# also matches this UI source directory, so new files in it cannot be staged 
without `git add -f`.
+!/airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/
+
 # Generated registry data 
(versions/{provider}/{version}/{metadata,parameters,connections}.json)
 # Generated by dev/registry/extract_metadata.py
 registry/src/_data/modules.json

Reply via email to