File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,11 @@ def update_bundle(bundle_path):
145
145
working_directory = os .path .abspath (os .getcwd ())
146
146
os .chdir (bundle_path )
147
147
git .submodule ("foreach" , "git" , "fetch" )
148
+ # Regular release tags are 'x.x.x'. Exclude tags that are alpha or beta releases.
149
+ # They will contain a '-' in the tag, such as '3.0.0-beta.5'.
150
+ # --exclude must be before --tags.
148
151
# sh fails to find the subcommand so we use subprocess.
149
- subprocess .run (shlex .split ("git submodule foreach 'git checkout -q `git rev-list --tags --max-count=1`'" ), stdout = subprocess .DEVNULL )
152
+ subprocess .run (shlex .split ("git submodule foreach 'git checkout -q `git rev-list --exclude='*-*' -- tags --max-count=1`'" ), stdout = subprocess .DEVNULL )
150
153
status = StringIO ()
151
154
result = git .status ("--short" , _out = status )
152
155
updates = []
You can’t perform that action at this time.
0 commit comments