diff --git a/go.mod b/go.mod index d2ece7c..b8ae91e 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/knqyf263/cob +module github.com/Olfeo/cob go 1.13 diff --git a/main.go b/main.go index ddf8026..3c13065 100644 --- a/main.go +++ b/main.go @@ -115,14 +115,14 @@ func run(c config) error { return xerrors.Errorf("unable to get a worktree based on the given fs: %w", err) } - s, err := w.Status() - if err != nil { - return xerrors.Errorf("unable to get the working tree status: %w", err) - } - - if !s.IsClean() { - return xerrors.New("the repository is dirty: commit all changes before running 'cob'") - } + //s, err := w.Status() + //if err != nil { + // return xerrors.Errorf("unable to get the working tree status: %w", err) + //} + // + //if !s.IsClean() { + // return xerrors.New("the repository is dirty: commit all changes before running 'cob'") + //} err = w.Reset(&git.ResetOptions{Commit: *prev, Mode: git.HardReset}) if err != nil {