Skip to content

Commit

Permalink
litex_setup: Don't do repo init in dev_mode (SSH clone) if running on…
Browse files Browse the repository at this point in the history
… CI.
  • Loading branch information
enjoy-digital committed Sep 18, 2023
1 parent de608ee commit e0be028
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion litex_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,9 @@ def main():

# Init.
if args.init:
litex_setup_init_repos(config=args.config, tag=args.tag, dev_mode=args.dev)
ci_run = (os.environ.get("GITHUB_ACTIONS") == "true")
dev_mode = args.dev and (not ci_run)
litex_setup_init_repos(config=args.config, tag=args.tag, dev_mode=dev_mode)

# Update.
if args.update:
Expand Down

0 comments on commit e0be028

Please sign in to comment.