Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 552814 | Differences between
and this patch

Collapse All | Expand All

(-)a/pym/portage/sync/modules/git/git.py (-1 / +5 lines)
Lines 110-115 class GitSync(NewBase): Link Here
110
			**self.spawn_kwargs)
110
			**self.spawn_kwargs)
111
111
112
		if exitcode == os.EX_OK and self.repo.sync_depth is not None:
112
		if exitcode == os.EX_OK and self.repo.sync_depth is not None:
113
			# Refresh the index in order to ensure that `git reset --hard`
114
			# will not re-write files unnecessarily.
115
			subprocess.call([self.bin_command, 'update-index', '--refresh'],
116
				cwd=portage._unicode_encode(self.repo.location))
117
113
			reset_cmd = [self.bin_command, 'reset', '--hard', remote_branch]
118
			reset_cmd = [self.bin_command, 'reset', '--hard', remote_branch]
114
			if quiet:
119
			if quiet:
115
				reset_cmd.append('--quiet')
120
				reset_cmd.append('--quiet')
116
- 

Return to bug 552814