cjj1120 commented on issue #42918:
URL: https://github.com/apache/airflow/issues/42918#issuecomment-2911540464

   Faced the same issue in my case I declared the branch under `ref` and 
`branch` as workaround: 
   
   ```
   # Git sync 4.X
   dags:
     mountPath: /opt/airflow/xxx/xxx
     persistence:
       enabled: false
     gitSync:
       enabled: true
       subPath: dags
       repo: "https://github.com/xxx.git";
       ref: dev # The newer Git sync versions use --ref instead of --branch
       branch: dev
       maxFailures: 2
       credentialsSecret: airflow-xxx
       period: 15s
       wait: 15
       envFrom: ~
       containerName: git-sync
       uid: 65533
       extraVolumeMounts: []
       env:
         # - name: GITSYNC_VERBOSE
         #   value: "9" # TEST (DEBUGGING MODE)
         - name: GITSYNC_TIMEOUT
           value: "30"
       resources:
         requests:
           cpu: 100m
           memory: 256Mi
         limits:
           cpu: 200m
           memory: 256Mi
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to