Skip to content

Commit

Permalink
fix(dev): fail on retry of a command with a deleted file
Browse files Browse the repository at this point in the history
```
fatal: pathspec ':<path>' did not match any files
```
  • Loading branch information
alexey-igrychev committed Sep 15, 2021
1 parent 3d81fce commit d286821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/true_git/service_branch.go
Expand Up @@ -170,7 +170,7 @@ func runGitAddCmd(ctx context.Context, sourceWorktreeDir string, serviceWorktree
}

if dryRun {
gitAddArgs = append(gitAddArgs, "--dry-run")
gitAddArgs = append(gitAddArgs, "--dry-run", "--ignore-missing")
}

var pathSpecList []string
Expand Down

0 comments on commit d286821

Please sign in to comment.