Kaynağa Gözat

[#1] chore: bypass git filters on remote pull to prevent merge conflicts

Lange François 3 hafta önce
ebeveyn
işleme
23738e1ab8
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      scripts/deploy_to_server.py

+ 1 - 1
scripts/deploy_to_server.py

@@ -34,7 +34,7 @@ def deploy():
         ssh.connect(host, username=user, password=password, timeout=10)
         print("Connected successfully!")
         
-        command = "cd food_project && git stash && rm -f git_version.txt git_id.txt && git pull && git stash clear && docker-compose up -d --build"
+        command = "cd food_project && git stash && rm -f git_version.txt git_id.txt && git -c filter.ident-dynamic.clean= -c filter.ident-dynamic.smudge= pull && git stash clear && docker-compose up -d --build"
         print(f"Executing: {command}")
         
         stdin, stdout, stderr = ssh.exec_command(command)