You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
funcsyncReposFromFS () {
gists, err:=db.GetAllGistsRows()
forrangegists {
// if repository does not exist, delete gist from databaseif_, err:=os.Stat(git.RepositoryPath(gist.User.Username, gist.Uuid)); err!=nil&&!os.IsExist(err) {
iferr2:=gist.Delete(); {}
}
}
I read this as cleanup unknown gists in db
But synchronize gists from filesystem means the following ideally.
I clone a github gist for eg. in opengist-home/repos/{user}/{gistid} as a bare repo, then synchronize should add it to db. (i.e. the index and import feature on the backend as supposted to from the UI #208)
similarly sync from db is actually cleanup unknown gists in filesystem
The text was updated successfully, but these errors were encountered:
I read this as
cleanup unknown gists in db
But
synchronize gists from filesystem
means the following ideally.I clone a github gist for eg. in
opengist-home/repos/{user}/{gistid}
as a bare repo, then synchronize should add it to db. (i.e. the index and import feature on the backend as supposted to from the UI #208)similarly
sync from db
is actuallycleanup unknown gists in filesystem
The text was updated successfully, but these errors were encountered: