Skip to content

Commit 0261ab9

Browse files
committed
allow abbreviation point to directory
1 parent 52fc31d commit 0261ab9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/deploy.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ func Deploy(ctx context.Context, config Config) error {
9292
fallthrough
9393
case aliasExist: // we found abbreviation template
9494
url = strings.ReplaceAll(repoTemplate, "{0}", repo)
95+
// alias may point to the dir too
96+
if info, err := os.Stat(url); err == nil && info.IsDir() {
97+
projectDir = url
98+
break
99+
}
95100
fallthrough
96101
default: // finally all we need is to pull remote repository by URL
97102
tmpDir, err := cloneFromGit(ctx, config.Git, url)

0 commit comments

Comments
 (0)