(s storer.EncodedObjectStorer, h plumbing.Hash)
| 1086 | } |
| 1087 | |
| 1088 | func objectExists(s storer.EncodedObjectStorer, h plumbing.Hash) (bool, error) { |
| 1089 | _, err := s.EncodedObject(plumbing.AnyObject, h) |
| 1090 | if err == plumbing.ErrObjectNotFound { |
| 1091 | return false, nil |
| 1092 | } |
| 1093 | |
| 1094 | return true, err |
| 1095 | } |
| 1096 | |
| 1097 | func checkFastForwardUpdate(s storer.EncodedObjectStorer, remoteRefs storer.ReferenceStorer, cmd *packp.Command) error { |
| 1098 | if cmd.Old == plumbing.ZeroHash { |
no test coverage detected
searching dependent graphs…