lowercase variable

This commit is contained in:
Denis Bilenko 2024-12-05 09:52:42 +01:00
parent a064d91ac5
commit 43da63bc50
1 changed files with 4 additions and 4 deletions

View File

@ -73,16 +73,16 @@ func (f *syncFlags) syncOptionsFromArgs(cmd *cobra.Command, args []string) (*syn
log.Warnf(ctx, "Failed to read git info: %s", err) log.Warnf(ctx, "Failed to read git info: %s", err)
} }
var WorktreeRoot vfs.Path var worktreeRoot vfs.Path
if info.WorktreeRoot == "" { if info.WorktreeRoot == "" {
WorktreeRoot = localRoot worktreeRoot = localRoot
} else { } else {
WorktreeRoot = vfs.MustNew(info.WorktreeRoot) worktreeRoot = vfs.MustNew(info.WorktreeRoot)
} }
opts := sync.SyncOptions{ opts := sync.SyncOptions{
WorktreeRoot: WorktreeRoot, WorktreeRoot: worktreeRoot,
LocalRoot: localRoot, LocalRoot: localRoot,
Paths: []string{"."}, Paths: []string{"."},
Include: nil, Include: nil,