Skip to content

Commit a0cd1a9

Browse files
committed
Outside of git repo, set WorktreeRoot to sync root
1 parent f91be8a commit a0cd1a9

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
Error: path "$TMPDIR" is not within repository root "$TMPDIR/myrepo"
2-
31
Name: test-bundle
42
Target: default
53
Workspace:
64
User: $USERNAME
75
Path: /Workspace/Users/$USERNAME/.bundle/test-bundle/default
86

9-
Found 1 error
10-
11-
Exit code: 1
7+
Validation OK!

bundle/config/mutator/load_git_details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (m *loadGitDetails) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagn
3232
}
3333

3434
if info.WorktreeRoot == "" {
35-
b.WorktreeRoot = b.BundleRoot
35+
b.WorktreeRoot = b.SyncRoot
3636
} else {
3737
b.WorktreeRoot = vfs.MustNew(info.WorktreeRoot)
3838
}

0 commit comments

Comments
 (0)