Commit 2c3bc87 1 parent 8d8ee3e commit 2c3bc87 Copy full SHA for 2c3bc87
File tree 1 file changed +3
-2
lines changed
buildroot/share/PlatformIO/scripts
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ def fetch_example(url):
88
88
if not url .startswith ('http' ):
89
89
brch = "bugfix-2.1.x"
90
90
if '@' in url : url , brch = map (str .strip , url .split ('@' ))
91
+ if url == 'examples/default' : url = 'default'
91
92
url = f"https://raw.githubusercontent.com/MarlinFirmware/Configurations/{ brch } /config/{ url } "
92
93
url = url .replace ("%" , "%25" ).replace (" " , "%20" )
93
94
@@ -103,7 +104,7 @@ def fetch_example(url):
103
104
import os
104
105
105
106
# Reset configurations to default
106
- os .system ("git reset --hard HEAD" )
107
+ os .system ("git checkout HEAD Marlin/*.h " )
107
108
108
109
# Try to fetch the remote files
109
110
gotfile = False
@@ -191,7 +192,7 @@ def apply_config_ini(cp):
191
192
192
193
# For 'examples/<path>' fetch an example set from GitHub.
193
194
# For https?:// do a direct fetch of the URL.
194
- if ckey .startswith ('examples/' ) or ckey .startswith ('http: ' ):
195
+ if ckey .startswith ('examples/' ) or ckey .startswith ('http' ):
195
196
fetch_example (ckey )
196
197
ckey = 'base'
197
198
You can’t perform that action at this time.
0 commit comments