Fetch new tags for git repos when cached.
This commit is contained in:
parent
2f438179a7
commit
d518fca81c
@ -257,7 +257,11 @@ class GitDownloadStrategy <AbstractDownloadStrategy
|
|||||||
safe_system 'git', 'clone', @url, @clone # indeed, leave it verbose
|
safe_system 'git', 'clone', @url, @clone # indeed, leave it verbose
|
||||||
else
|
else
|
||||||
puts "Updating #{@clone}"
|
puts "Updating #{@clone}"
|
||||||
Dir.chdir(@clone) { quiet_safe_system 'git', 'fetch', @url }
|
Dir.chdir(@clone) do
|
||||||
|
quiet_safe_system 'git', 'fetch', @url
|
||||||
|
# If we're going to checkout a tag, then we need to fetch new tags too.
|
||||||
|
quiet_safe_system 'git', 'fetch', '--tags' if @spec == :tag
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user