Run two commands during git bisect run
Asked Answered
H

2

45

I would essentially like to do git bisect run 'bundle && bundle exec cucumber'.

I want to do this on the commandline - I don't want to write a shell script.

Hest answered 11/4, 2012 at 15:0 Comment(0)
A
71
git bisect run sh -c 'bundle && bundle exec cucumber'
Applause answered 11/4, 2012 at 15:11 Comment(0)
R
0

If you change the command to (notice addition of exec for second command):

git bisect run sh -c 'bundle && exec bundle exec cucumber'

It seems to have the correct behavior. I believe the exit code behavior is modified if the shell has the command has a child process.

Richey answered 21/5 at 0:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.