Skip to content

Commit 7197f40

Browse files
authored
Add --prefix argument to archive-source command (#3748)
1 parent 777a15a commit 7197f40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SourceControl/GitRepository.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ public final class GitRepository: Repository, WorkingCheckout {
523523
try self.lock.withLock {
524524
try callGit("archive",
525525
"--format", "zip",
526+
"--prefix", path.basenameWithoutExt,
526527
"--output", path.pathString,
527528
"HEAD",
528529
failureMessage: "Couldn’t create an archive")

0 commit comments

Comments
 (0)