grim/hgkeeper

Eval symlink of repository directory

12 months ago, aklitzing
dca75ada402c
Parents ebf8e3bd9e68
Children 7485b844616f
Eval symlink of repository directory

Otherwise "hgkeeper once" cannot find any repository if the absReposPath
is a symlink.

Reviewed at https://reviews.imfreedom.org/r/2437/
--- a/access/repositories.go Wed Apr 12 23:49:27 2023 -0500
+++ b/access/repositories.go Wed Apr 12 23:51:38 2023 -0500
@@ -24,6 +24,11 @@
return err
}
+ absReposPath, err = filepath.EvalSymlinks(absReposPath)
+ if err != nil {
+ return err
+ }
+
repositories = make(map[string]string)
// walk the reposPath, looking for .hg directories, when one is found,