Skip to content

Commit ad615ec

Browse files
committed
git - rugged: add tags to the refspec
* ensure we also add refs/tags to the refspec * also add download_tags to the options for good measure Fixes: #1416
1 parent 639b7e4 commit ad615ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/r10k/git/rugged/bare_repository.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def fetch(remote_name='origin')
5959
remote = remotes[remote_name]
6060
proxy = R10K::Git.get_proxy_for_remote(remote)
6161

62-
options = {:credentials => credentials, :prune => true, :proxy_url => proxy}
63-
refspecs = ['+refs/heads/*:refs/heads/*']
62+
options = {:credentials => credentials, :prune => true, :proxy_url => proxy, :download_tags => true}
63+
refspecs = ['+refs/heads/*:refs/heads/*', '+refs/tags/*:refs/tags/*']
6464

6565
results = nil
6666

0 commit comments

Comments
 (0)