Skip to content

Commit eb962ed

Browse files
authored
Merge 7f6e53b into df81cd8
2 parents df81cd8 + 7f6e53b commit eb962ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (s *GitRepo) Update() error {
158158

159159
// UpdateVersion sets the version of a package currently checked out via Git.
160160
func (s *GitRepo) UpdateVersion(version string) error {
161-
out, err := s.RunFromDir("git", "checkout", version)
161+
out, err := s.RunFromDir("git", "checkout", "-f", version)
162162
if err != nil {
163163
return NewLocalError("Unable to update checked out version", err, string(out))
164164
}

0 commit comments

Comments
 (0)