Skip to content

Commit 12dc79a

Browse files
committed
[update-checkout] Rather than manually creating a path, use os.path.join. NFC.
1 parent c5d3083 commit 12dc79a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/update-checkout

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def obtain_additional_swift_sources(
8585
config["swift-3.0-preview-1-branches"][dir_name]
8686
else:
8787
repo_branch = branch
88-
src_path = SWIFT_SOURCE_ROOT + "/" + dir_name + "/" + \
89-
".git"
88+
src_path = os.path.join(SWIFT_SOURCE_ROOT, dir_name, ".git")
9089
shell.call(['git', '--git-dir', src_path, '--work-tree',
9190
os.path.join(SWIFT_SOURCE_ROOT, dir_name),
9291
'checkout', repo_branch], echo=False)

0 commit comments

Comments
 (0)