(s storer.EncodedObjectStorer, h plumbing.Hash)
| 1077 | } |
| 1078 | |
| 1079 | func objectExists(s storer.EncodedObjectStorer, h plumbing.Hash) (bool, error) { |
| 1080 | _, err := s.EncodedObject(plumbing.AnyObject, h) |
| 1081 | if err == plumbing.ErrObjectNotFound { |
| 1082 | return false, nil |
| 1083 | } |
| 1084 | |
| 1085 | return true, err |
| 1086 | } |
| 1087 | |
| 1088 | func checkFastForwardUpdate(s storer.EncodedObjectStorer, remoteRefs storer.ReferenceStorer, cmd *packp.Command) error { |
| 1089 | if cmd.Old == plumbing.ZeroHash { |
no test coverage detected