1 |
|
2 |
|
3 | var debug = require('debug')('ggit')
|
4 | var exec = require('./exec')
|
5 |
|
6 | function 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 |
|
13 | module.exports = fetchTags
|