diff options
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r-- | pkg/commands/git.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 42c1749af..1448b37cb 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -109,7 +109,7 @@ func NewGitCommand(log *logrus.Entry, osCommand *OSCommand, tr *i18n.Localizer, return nil, err } - return &GitCommand{ + gitCommand := &GitCommand{ Log: log, OSCommand: osCommand, Tr: tr, @@ -120,7 +120,11 @@ func NewGitCommand(log *logrus.Entry, osCommand *OSCommand, tr *i18n.Localizer, getLocalGitConfig: gitconfig.Local, removeFile: os.RemoveAll, DotGitDir: dotGitDir, - }, nil + } + + gitCommand.PatchManager = NewPatchManager(log, gitCommand.ApplyPatch) + + return gitCommand, nil } func findDotGitDir(stat func(string) (os.FileInfo, error), readFile func(filename string) ([]byte, error)) (string, error) { |