Modif dépot

This commit is contained in:
2026-03-24 12:51:40 +01:00
parent a110517401
commit 18bda249b5
3 changed files with 10 additions and 5 deletions

View File

@@ -1,7 +1,10 @@
{ {
"permissions": { "permissions": {
"allow": [ "allow": [
"Bash(python git_updater.py)" "Bash(python git_updater.py)",
"Bash(pip show:*)",
"Bash(pip install:*)",
"Bash(pyinstaller --onefile --windowed --name \"GitUpdateChecker\" git_updater.py)"
] ]
} }
} }

View File

@@ -2,6 +2,7 @@
; Les chemins (path) sont relatifs a l'emplacement de l'exe ; Les chemins (path) sont relatifs a l'emplacement de l'exe
; Ajouter autant de sections [repo:NomDuRepo] que necessaire ; Ajouter autant de sections [repo:NomDuRepo] que necessaire
[repo:Batch]
url = http://192.168.1.235:3125/zogzog/Batch [repo:Scripts]
path = ../Batch url = http://192.168.1.235:3125/zogzog/Scripts
path = ../SOFT/Batch/Scripts

View File

@@ -74,7 +74,8 @@ log = setup_logging()
def run_git(args, cwd=None): def run_git(args, cwd=None):
cmd = ["git"] + args # -c safe.directory=* : évite l'erreur "dubious ownership" sur clé USB
cmd = ["git", "-c", "safe.directory=*"] + args
log.debug(f"git {' '.join(args)} (cwd={cwd})") log.debug(f"git {' '.join(args)} (cwd={cwd})")
try: try:
result = subprocess.run( result = subprocess.run(