feat(reposync): support custom directory name for repo sync (#132)

This commit is contained in:
duorameng
2026-06-18 08:55:18 +08:00
parent 15f9c47cb4
commit 2141831075
7 changed files with 156 additions and 13 deletions
@@ -1267,6 +1267,9 @@ func BuildRepoCommand(task *models.Task) (string, string) {
if config.Extensions != "" {
args = append(args, "--extensions", config.Extensions)
}
if config.DirName != "" {
args = append(args, "--repo-name", config.DirName)
}
if string(task.PreCommand) != "" {
args = append(args, "--pre-command", string(task.PreCommand))
}