issues
search
Notgnoshi
/
herostratus
An ancient Greek known for seeking fame through crime and destruction. Also a Git repository achievements engine.
MIT License
0
stars
0
forks
source link
Clone bare repositories to ~/.cache/herostratus/git/
#6
Closed
Notgnoshi
closed
6 months ago
Notgnoshi
commented
7 months ago
Use
https://docs.rs/directories/latest/directories/
for app data
Clone repos to
ProjectDir::data_dir()/git/$path
where
$path
is parsed from the clone URL as documented here:
https://git-scm.com/docs/git-clone/
If the repository is already cloned
Check to see if the remotes match?
Check to see if the repositories have common history? (how to do without cloning?)
Fetch instead of clone
Assert bare repository
ProjectDir::data_dir()/git/$path
where$path
is parsed from the clone URL as documented here: https://git-scm.com/docs/git-clone/