Skip to content

Commit

Permalink
awe here we go again with this bullshit part 8
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Oct 1, 2024
1 parent 6b3fefc commit aa14fb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/mvb.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,15 @@ const exec = createExec({cwd: options.tmpDir, debug});
// start it up
log('collecting version information from %s...', magenta(gitDir));

// lets make sure the source repo at least has all the tag information it needs
// checkout branch
await exec('git', ['checkout', getBranch()]);

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

await exec('git', ['status']);
await exec('git', ['--no-pager', 'tag']);
Expand Down

0 comments on commit aa14fb0

Please sign in to comment.