forked from coop-cloud/abra
parent
dbf84b7640
commit
a18729bf98
|
@ -47,6 +47,16 @@ func EnsureUpToDate(dir string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
recipeName := filepath.Base(dir)
|
||||
isClean, err := IsClean(recipeName)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !isClean {
|
||||
return fmt.Errorf("'%s' has locally unstaged changes", recipeName)
|
||||
}
|
||||
|
||||
branch := "master"
|
||||
if _, err := repo.Branch("master"); err != nil {
|
||||
if _, err := repo.Branch("main"); err != nil {
|
||||
|
|
Loading…
Reference in New Issue