FakeClone#

class graftkit.testing.FakeClone[source]#

Bases: FrozenModel

A clone FakeGit made: where it came from and the state a test gives it.

Attributes:
repositorystr

owner/name, as cloned.

originstr | None

Its origin URL; None for no origin.

branchstr

The branch it has checked out.

configdict[str, str]

The config it was cloned with.

cleanbool

Whether it has no changes.

behindbool

Whether its remote has commits it lacks, so it fast-forwards.

divergedbool

Whether it has commits of its own, so it cannot fast-forward.