Skip to content

Commit

Permalink
Update git.go
Browse files Browse the repository at this point in the history
fix bug with auto line endings, which leads to uncleared status of repo
https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings
  • Loading branch information
R-omk authored Feb 2, 2018
1 parent 6f1c6d1 commit 4d121ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (s *GitRepo) Update() error {

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

0 comments on commit 4d121ff

Please sign in to comment.