Merge pull request #633 from thockin/use-makeAbsPath

use makeAbsPath for link
This commit is contained in:
Kubernetes Prow Robot 2022-09-11 08:49:23 -07:00 committed by GitHub
commit 34c33c724a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -500,10 +500,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 {