Explorar el Código

Fix error thrown when there's nothing to push

Brendan Abolivier hace 7 años
padre
commit
bd148feba3
Firmado por: Brendan Abolivier <contact@brendanabolivier.com> ID clave GPG: 8EF1500759F70623
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7
    1
      src/git/git.go

+ 7
- 1
src/git/git.go Ver fichero

110
 		return err
110
 		return err
111
 	}
111
 	}
112
 
112
 
113
-	return r.Push(&git.PushOptions{
113
+	err = r.Push(&git.PushOptions{
114
 		Auth: auth,
114
 		Auth: auth,
115
 	})
115
 	})
116
+
117
+	if err == git.NoErrAlreadyUpToDate {
118
+		return nil
119
+	}
120
+
121
+	return err
116
 }
122
 }