Skip to content

Commit

Permalink
Fetch tags for cached git repo (#6393)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley luyten authored and bestander committed Sep 24, 2018
1 parent 90c130e commit 5682d55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ export default class Git implements GitRefResolvingInterface {

return fs.lockQueue.push(gitUrl.repository, async () => {
if (await fs.exists(cwd)) {
await spawnGit(['fetch', '--tags'], {cwd});
await spawnGit(['pull'], {cwd});
} else {
await spawnGit(['clone', gitUrl.repository, cwd]);
Expand Down

0 comments on commit 5682d55

Please sign in to comment.