Spaces:
Running
Running
Update app.py
Browse files
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")):
|