hackergrrl / hypergit

Manage and clone peer-to-peer git repositories.
206 stars 9 forks source link

aborting during a clone breaks that repo #8

Closed hackergrrl closed 6 years ago

hackergrrl commented 6 years ago
$ git clone hypergit://... foo
Seeking peers..
Replicating..
^C

$ git clone hypergit://... foo
$ cd foo
(empty dir /wo a git repo in it)

I think this can be fixed by clones always going into a temporary directory, and only being moved in with the rest of the hypergit repos once it finishes replication.

hackergrrl commented 6 years ago

Fixed! Clones occur in a temp dir and are only copied over once they replicate successfully.