From b3347f5b249169e6d37e196fbb4a847fa95d755e Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Mon, 15 Aug 2022 09:07:48 -0700 Subject: [PATCH] Log before running command --- cmd/git-sync/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/git-sync/main.go b/cmd/git-sync/main.go index d669a8a..ea5d376 100644 --- a/cmd/git-sync/main.go +++ b/cmd/git-sync/main.go @@ -1045,8 +1045,8 @@ func (git *repoSync) AddWorktreeAndSwap(ctx context.Context, hash string) error return err } - _, err := git.run.Run(ctx, git.root, nil, git.cmd, "worktree", "add", "--detach", worktreePath, hash, "--no-checkout") git.log.V(0).Info("adding worktree", "path", worktreePath, "hash", hash) + _, err := git.run.Run(ctx, git.root, nil, git.cmd, "worktree", "add", "--detach", worktreePath, hash, "--no-checkout") if err != nil { return err }