File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ def generate_branch(base, car):
123123 )
124124 return branch_name
125125
126+
126127def generate_html (base_cars_base_branches ):
127128 header = """
128129<html>
@@ -160,7 +161,7 @@ def generate_html(base_cars_base_branches):
160161 body += f"<li><code>{ car } </code>"
161162 body += f"<ul>"
162163 body += f"<li>Custom Software URL: <code>https://installer.comma.ai/hardcoded-fp/{ base_cars_base_branches [base ][car ]} </code></li>"
163- body += f" <li><a href=\ " https://github.com/hardcoded-fp/openpilot/tree/{ base_cars_base_branches [base ][car ]} \ " >View on GitHub</a></li>"
164+ body += f' <li><a href="/hardcoded-fp/openpilot/tree/{ base_cars_base_branches [base ][car ]} ">View on GitHub</a></li>'
164165 body += f"</ul>"
165166 body += f"</li>"
166167
@@ -174,6 +175,7 @@ def generate_html(base_cars_base_branches):
174175 with open ("pages/index.html" , "w" ) as f :
175176 f .write (header + body + footer )
176177
178+
177179def main (push = True ):
178180 prepare_op_repo ()
179181
@@ -205,6 +207,7 @@ def main(push=True):
205207 logging .info ("Pushing branches to origin" )
206208 os .system ("cd comma_openpilot && git push origin --force --all" )
207209
210+
208211if __name__ == "__main__" :
209212 # Check if args has dry run, if so, don't push
210213 import sys
You can’t perform that action at this time.
0 commit comments