NewGoGitRepository creates a new git repository struct with the given parameters
(localPath string, remoteURL string)
| 17 | |
| 18 | // NewGoGitRepository creates a new git repository struct with the given parameters |
| 19 | func NewGoGitRepository(localPath string, remoteURL string) *GoGitRepository { |
| 20 | return &GoGitRepository{ |
| 21 | LocalPath: localPath, |
| 22 | RemoteURL: remoteURL, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // Update pulls the repository or clones it into the local path |
| 27 | func (gr *GoGitRepository) Update(merge bool) error { |
no outgoing calls