soiz1 commited on
Commit
7860e2c
·
verified ·
1 Parent(s): af9b516

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -15,6 +15,7 @@ authed_url = repo_url.replace("https://", f"https://{token}@")
15
 
16
  # カレントディレクトリのパス
17
  current_dir = os.getcwd()
 
18
 
19
  # .gitディレクトリがなければ初期化
20
  if not os.path.exists(os.path.join(current_dir, ".git")):
 
15
 
16
  # カレントディレクトリのパス
17
  current_dir = os.getcwd()
18
+ subprocess.run(["git", "config", "--global", "--add", "safe.directory", "/app"], check=True)
19
 
20
  # .gitディレクトリがなければ初期化
21
  if not os.path.exists(os.path.join(current_dir, ".git")):