Skip to content

Commit

Permalink
improve mvb tag fetching to fix tag clobbering issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Nov 23, 2024
1 parent ec34359 commit 94f583f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Improved `mvb` tag fetching to ensure remote tags are canonical for version building, fixes `would clobber existing tag` error(s)

## v1.1.0-beta.23 - [November 13, 2024](https://github.com/lando/vitepress-theme-default-plus/releases/tag/v1.1.0-beta.23)

* Changed `mvb` to never cache the main/base/root build
Expand Down
2 changes: 1 addition & 1 deletion bin/mvb.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const exec = createExec({cwd: options.tmpDir, debug});
log('setting up mvb build environment using %s...', magenta(gitDir));

// lets make sure the source repo at least has all the tag information it needs
const updateArgs = ['fetch', 'origin', '--tags', '--no-filter'];
const updateArgs = ['fetch', 'origin', '--tags', '--no-filter', '--force'];
// if shallow then add to update refs
if (getStdOut('git rev-parse --is-shallow-repository', {trim: true}) === 'true') updateArgs.push('--unshallow');
// fetch
Expand Down

0 comments on commit 94f583f

Please sign in to comment.