2023-07-20 09:26:25 +00:00
|
|
|
package githelper
|
|
|
|
|
|
|
|
type Mock struct{}
|
|
|
|
|
|
|
|
func NewGitMock() Githelper {
|
|
|
|
return &Mock{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mock) CloneRepo(workdir, gitURL string, dry bool) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-10-20 11:31:30 +00:00
|
|
|
func (g *Mock) AddAllAndCommit(workdir, message string) (string, error) {
|
|
|
|
return "HASH", nil
|
2023-07-20 09:26:25 +00:00
|
|
|
}
|
|
|
|
func (g *Mock) Push(workdir string) error {
|
|
|
|
return nil
|
|
|
|
}
|