Skip to content

Commit e55a543

Browse files
fix for non-git repo
1 parent a1ecf06 commit e55a543

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,11 +1302,13 @@ def process_review(
13021302
"coverage_message": coverage_message,
13031303
"replay_tests": replay_tests,
13041304
"concolic_tests": concolic_tests,
1305-
"root_dir": git_root_dir(),
13061305
}
13071306

13081307
raise_pr = not self.args.no_pr
13091308

1309+
if raise_pr or self.args.staging_review:
1310+
data["root_dir"] = git_root_dir()
1311+
13101312
if raise_pr and not self.args.staging_review:
13111313
data["git_remote"] = self.args.git_remote
13121314
check_create_pr(**data)

0 commit comments

Comments
 (0)