mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-27 10:19:03 +00:00
Add no clean flag (#154)
This commit is contained in:
@@ -15,6 +15,7 @@ type Gitter interface {
|
||||
Clean(scm.Repo) error
|
||||
Checkout(scm.Repo) error
|
||||
UpdateRemote(scm.Repo) error
|
||||
FetchAll(scm.Repo) error
|
||||
}
|
||||
|
||||
type GitClient struct{}
|
||||
@@ -70,3 +71,9 @@ func (g GitClient) Reset(repo scm.Repo) error {
|
||||
cmd.Dir = repo.HostPath
|
||||
return cmd.Run()
|
||||
}
|
||||
|
||||
func (g GitClient) FetchAll(repo scm.Repo) error {
|
||||
cmd := exec.Command("git", "fetch", "--all")
|
||||
cmd.Dir = repo.HostPath
|
||||
return cmd.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user