Merge pull request #353 from thockin/fix-v4-tests
Fix tests on master - reset needs "--" arg
This commit is contained in:
commit
6f5c1a9a22
|
|
@ -725,7 +725,7 @@ func (git *repoSync) AddWorktreeAndSwap(ctx context.Context, hash string) error
|
|||
}
|
||||
|
||||
// Reset the worktree's working copy to the specific rev.
|
||||
_, err = runCommand(ctx, worktreePath, git.cmd, "reset", "--hard", hash)
|
||||
_, err = runCommand(ctx, worktreePath, git.cmd, "reset", "--hard", hash, "--")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -768,7 +768,7 @@ func (git *repoSync) AddWorktreeAndSwap(ctx context.Context, hash string) error
|
|||
}
|
||||
|
||||
// Reset the root's rev (so we can prune and so we can rely on it later).
|
||||
_, err = runCommand(ctx, git.root, git.cmd, "reset", "--hard", hash)
|
||||
_, err = runCommand(ctx, git.root, git.cmd, "reset", "--hard", hash, "--")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue