Questions tagged [git-bisect]

git-bisect is part of the git CM software. It is used to find which change broke something.

88 questions
4
votes
1 answer

How can git bisect pick a commit that doesn't have the first good commit as an ancestor? (using --first-parent)

I have a repository that uses a "trunk" flow with feature branches merging in and creating merge commits, and am using bisect to try find when issues were introduced. The issue identification process involves a comparison to results from a…
Joel Gibson
  • 293
  • 2
  • 8
4
votes
2 answers

How to resume a git bisect

Suppose that I'm going through a git bisect, and after running a git bisect bad command, my git bisect gets interrupted like so: $ git bisect bad Bisecting: 0 revisions left to test after this (roughly 1 step) error: Your local changes to the…
abbood
  • 21,507
  • 9
  • 112
  • 218
4
votes
1 answer

git bisect not responding to commands

I'm on a separate branch titled redesign-test-fixes and I run git bisect start. After that, I test my bug and run git bisect bad. Terminal prints no output. I then run git bisect good. Same thing, no output is printed on terminal. It's as if bisect…
thank_you
  • 10,362
  • 17
  • 85
  • 173
4
votes
2 answers

How does --no-ff merge break bisect and blame?

Understanding the Git Workflow article says, So you add a new rule: “When you merge in your feature branch, use –no-ff to force a new commit.” This gets the job done, and you move on. Then one day you discover a critical bug in production, and…
Holmes.Sherlock
  • 1,693
  • 1
  • 20
  • 29
4
votes
1 answer

What is the best way to do bisecting with subversion?

I tend to use the bisect command in git extensively. Now I want to do the same in a subversion repository. What is the best way to bisect a subversion repository? Converting the svn repository to git is not an option because it is a fairly large one…
Fabian Jakobs
  • 27,222
  • 7
  • 38
  • 37
4
votes
1 answer

Find most recent good commit to pass to git bisect

Suppose I suddenly see something is failing on my Git repo. But I know that it was working a few commits ago, I just don't remember which commit. Instead of trying to find a "good" commit to do a git bisect, I would like to ask Git (perhaps with a…
Xu Wang
  • 8,891
  • 4
  • 40
  • 70
4
votes
1 answer

Is it possible to use git-bisect to track down an issue that might be in one of two repositories?

I work on a project that (for reasons outside the scope of this question) is separated between two git repositories. It's a web project, and has a common library layer (stored in repository A) and a specific project layer (stored in repository…
Andrew Ferrier
  • 13,902
  • 11
  • 40
  • 73
3
votes
0 answers

Make Git Bisect do a force checkout or otherwise overwrite local changes

I'm git bisecting a Unity3D repository and every time I open the Unity3D editor to check if the current revision is good or bad, Unity3D dirties a few files, forcing me to do a hard reset before continuing with the bisection. This is because if I…
AnLog
  • 748
  • 1
  • 7
  • 15
3
votes
1 answer

Unbounded git bisect

Is it possible to use git bisect with one of the bounds unspecified. For example if I discover something broken on HEAD but I suspect it worked at some point in the past, is there a way to tell git "try one commit ago, if that doesn't work try two…
Timmmm
  • 68,359
  • 51
  • 283
  • 367
3
votes
2 answers

git bisect with list of *uninteresting* paths

You can pass a list of paths to git bisect so that only commits changing those files are tested: You can further cut down the number of trials, if you know what part of the tree is involved in the problem you are tracking down, by specifying…
Cactus
  • 25,576
  • 9
  • 60
  • 130
3
votes
1 answer

What does the last line of git bisect output mean?

I just ran a Git bisect and got the following output: 547b115c69ab2ac7fde285c9b5653cbd8309a930 is the first bad commit commit 547b115c69ab2ac7fde285c9b5653cbd8309a930 Author: Václav Slavík Date: Sat Mar 14 13:35:32 2015…
Alex Henrie
  • 604
  • 1
  • 5
  • 15
3
votes
1 answer

git bisect in one command

I think git bisect requires too much typing. To check the last N commits I have to do: user@host> git bisect start HEAD HEAD~10 user@host> git bisect run py.test -k test_something ... c8bed9b56861ea626833637e11a216555d7e7414 is the first bad…
guettli
  • 26,461
  • 53
  • 224
  • 476
2
votes
0 answers

Git commit from a bisect

I have only ever used git add . for this project, but somewhere along the line I started getting the strange "modified content, untracked content" error on one of my subdirectories (called users). Other stackoverflow answers didn't work for me. I…
KyleR
  • 99
  • 9
2
votes
2 answers

Can I synthesize a branch in git that skips a single change set

Assume the following git branch: A -> B -> C -> D -> E -> F -> G I've determined via git bisect that commit C introduced a bug, but reverting the changes introduced by C at the top of the branch does not solve the issue. This indicated to me that…
Chaim Geretz
  • 776
  • 4
  • 22
2
votes
1 answer

git bisect in combination with CRLF/LF

I am trying to git bisect some bad behavior in a public repo. The repo has: some commits with CRLF (I am on MacOS, so expecting LF) a .gitattributes file in its root, normalizing .c, .h, and .java files As I understand it, none of the present…
Gauthier
  • 34,041
  • 11
  • 53
  • 87