use makeAbsPath for link
This commit is contained in:
parent
77edb67ecf
commit
87cbd3a691
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue