use makeAbsPath for link

This commit is contained in:
Tim Hockin 2022-08-31 16:50:50 -07:00
parent 77edb67ecf
commit 87cbd3a691
No known key found for this signature in database
1 changed files with 1 additions and 4 deletions

View File

@ -493,10 +493,7 @@ func main() {
// Convert the link into an absolute path. We don't want to mkdir here, // Convert the link into an absolute path. We don't want to mkdir here,
// since it may be under --root, and that confuses `git clone`. // since it may be under --root, and that confuses `git clone`.
// TODO(thockin): put repo in a subdir and mkdir + nortmalizePath() here // TODO(thockin): put repo in a subdir and mkdir + nortmalizePath() here
absLink := *flLink absLink := makeAbsPath(*flLink, absRoot)
if !filepath.IsAbs(absLink) {
absLink = filepath.Join(absRoot, *flLink)
}
if *flAddUser { if *flAddUser {
if err := addUser(); err != nil { if err := addUser(); err != nil {