Skip to content

Commit dfa1e3d

Browse files
committed
sync db: add a comment about git cmd execution
1 parent 1125623 commit dfa1e3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/sync_db.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def run():
8787
updated = 0
8888
d = 0
8989
for database_folder in dirs:
90+
# Since we'd normally operate on the file system outside the container (e.g. git pulling database repos),
91+
# this allows running git commands from inside the container (with a different user)
9092
subprocess.run(
9193
[
9294
"git",
@@ -131,7 +133,7 @@ def run():
131133
if "playable" in file:
132134
romfile = file["filename"]
133135

134-
# Just on the GB database, run the gbstoolsid to get
136+
# For the GB database only, run the gbstoolsid to get
135137
# some information about how the ROM was developed
136138
if "database-gb" in folder:
137139
try:

0 commit comments

Comments
 (0)