post: commit 915f512 in bojemoi
Some checks failed
Hugo Build & Deploy / build-deploy (push) Has been cancelled

This commit is contained in:
2026-06-30 15:08:07 +02:00
committed by Betty
parent 0d3f53db3b
commit d3d0f58e6a

View File

@@ -0,0 +1,40 @@
---
title: "[bojemoi] fix(grafana-watcher): bypass SSH config via GIT_SSH_COMMAND + -F /dev/null"
date: 2026-06-30T15:08:07+02:00
draft: false
tags: ["commit", "bojemoi", "main"]
categories: ["Git Activity"]
summary: "Commit 915f512 par Betty dans bojemoi"
author: "Betty"
---
## Commit `915f512`
| | |
|---|---|
| **Repository** | bojemoi |
| **Branch** | `main` |
| **Author** | Betty |
| **Hash** | `915f512fad6e497ec15543260cc5ac03313d49ce` |
### Description
SSH refused /root/.ssh/config (owned by uid 1002, running as root in container).
Set GIT_SSH_COMMAND with -F /dev/null to skip config entirely, using gitea_key_new directly.
Also fixed git diff --cached to use safe.directory and _GIT_ENV.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
### Files Changed
```
M grafana-watcher/git_sync.py
```
### Diff Summary
```
grafana-watcher/git_sync.py | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
```