UNPKG

293 BJavaScriptView Raw
1'use strict'
2
3var debug = require('debug')('ggit')
4var exec = require('./exec')
5
6function fetchTags (branch) {
7 branch = branch || 'master'
8 debug('fetching remote tags for branch', branch)
9 var cmd = 'git pull origin ' + branch + ' --tags'
10 return exec(cmd)
11}
12
13module.exports = fetchTags