From 7f6e53b2d9a2755c978e6c8d92694b306b8746ec Mon Sep 17 00:00:00 2001 From: R-omk Date: Fri, 2 Feb 2018 16:02:32 +0300 Subject: [PATCH] Update git.go 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 --- git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git.go b/git.go index 953d014..239d220 100644 --- a/git.go +++ b/git.go @@ -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)) }