Skip to content

Commit 6b5a7b6

Browse files
committed
fetch and prune cache also
1 parent 9e7d70a commit 6b5a7b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/r10k/git/stateful_repository.rb

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def sync(ref, force=true, exclude_spec=true)
6363
if force
6464
logger.warn(_("Overwriting local modifications to %{repo_path}") % {repo_path: @repo.path})
6565
logger.debug(_("Updating %{repo_path} to %{ref}") % {repo_path: @repo.path, ref: ref })
66+
@repo.fetch
6667
@repo.prune
6768
@repo.checkout(sha, {:force => force})
6869
else

0 commit comments

Comments
 (0)