Skip to content

Commit 7557e9e

Browse files
committed
change submodule checkout logic for ci
1 parent ebb6b2f commit 7557e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/update_source_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def update_sources_for_chapter(chapter, previous_chapter):
4444

4545
# check out current branch, local version, for final diff
4646
subprocess.check_output(['git', 'checkout', chapter], cwd=source_dir)
47-
if getpass.getuser() == 'jenkins':
47+
if os.environ.get("CI") == "true":
4848
# if in CI, we use the submodule commit, to check that the submodule
4949
# config is up to date
5050
print('resetting submodule to', commit_specified_by_submodule)

0 commit comments

Comments
 (0)