Questions tagged [git-bisect]

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

88 questions
1
vote
1 answer

Git bisect to wrong result

I'm using git bisect to find a bad commit for linux boot failure. And the current known bad commit is : commit 0f3f4fef3520fe888303886b62224bac7a837cac Author: Darren Hart Date: Mon Mar 2 09:06:39 2015 -0800 Add manifest…
Chen
  • 105
  • 6
1
vote
2 answers

Is `git reset --hard` required before mark the current commit as good or bad during bisect?

In my current workflow, I'm updating/rebasing an ancient patch to work against recent versions of a projetct. In my current workflow, I use git bisect to find the latest commit which can be used to cleanly apply the patch. To check if the patch can…
vinipsmaker
  • 1,901
  • 16
  • 27
1
vote
1 answer

Algorithm to find when a set of git projects was broken?

Let's assume I have N git projects, which combined together define a release/ repository R. When R pass a sanity test, T, we name it a good R and if it fails we name it a bad R. I want to come up with a script, and in the future push it to google…
0x90
  • 34,073
  • 33
  • 137
  • 218
1
vote
1 answer

Can I make git bisect display shortened commit SHAs?

Running git bisect generates output like this after each bisection: Bisecting: 22 revisions left to test after this (roughly 5 steps) [123fedacc728b985d4f8d010e2a69dcbdcbf3e8e] use binascii module for hex/binary conversions Can I make it use…
Simon Whitaker
  • 20,203
  • 4
  • 56
  • 79
0
votes
2 answers

How can I find the Git commit that added a specific Gradle build dependency across file renames and reorderings?

I'm working in a multi-project Gradle project implemented using Spring Boot and Java, and version controlled using Git. One of the subprojects depends on a particular library (let's call it com.example:mylib), declared in that particular…
M. Justin
  • 5,160
  • 1
  • 38
  • 65
0
votes
0 answers

`git bisect run` with a bash function

Is there a convenient way to write a bash script to run git bisect run, where the bisect command used is itself a bash function? If my function is named step, it appears that git bisect run step and git bisect run bash -c step are both unable to…
l k
  • 65
  • 7
0
votes
1 answer

Reverting after git bisect

I'm doing a calculator project. In that, I've to find the bad commit using the git bisect and remove that commit using git revert. The resultant has to be staged, commit and pushed to the remote repo. Using git bisect, I found the bad commit. Then…
0
votes
1 answer

Git Bisect List of Commits

I'm trying to avoid writing my own bisect tool here, but I thought I'd check here first. Basically, I want to bisect only commits listed in git log --merges (i.e. I want to figure out which PR introduced a problem). However, git bisect seems to use…
Gillespie
  • 4,319
  • 2
  • 24
  • 42
0
votes
1 answer

git bisect manual vs git bisect run

I'm learning about git bisect Let's guess the following linear git history: * A commit-1 # HEAD * B commit-2 * C commit-3 * D commit-4 # First bad commit * E commit-5 * F commit-6 * G commit-7 * H commit-8 # Is good Then, I start the…
calbertts
  • 1,452
  • 2
  • 15
  • 32
0
votes
0 answers

Shortcut for "git bisect" applying a rebase on each bisect point?

While I worked on my feature branch, the ci branch has run forward. When I rebase my feature onto ci, tests fail. I'd like to find the commit(s) in ci after which my branch started failing. I can write a script which rebases the feature, runs the…
Konstantin Shemyak
  • 1,878
  • 1
  • 17
  • 34
0
votes
1 answer

git bisect blaming unrelated commit

I had a situation at work where we have a git repo with ~80 active users working on. There was a commit #1 on feature branch modifying a file. Branch was merged into master. Some later time I have found that change introduced by commit #1 is missing…
Michał Walenciak
  • 3,867
  • 4
  • 29
  • 57
0
votes
0 answers

Git bisect run errors with You need to start by "git bisect start"

I have a tests.sh file. The file simply contains either exit 0 or exit 1. 0 for the first couple of commits, 1 for the remaining (I think) representing that the first couple of commits are good and the rest are bad. I'm running $ git bisect run…
BanksySan
  • 24,077
  • 27
  • 94
  • 189
0
votes
0 answers

Running bisect via os.system gives weird error "No testable commit found." while running from bash is ok

I'm running bisect like this (tried replacing with subprocess, for good measure. Same results...): os.chdir(repo_head) os.system('git bisect start') os.system('git bisect bad XXX') os.system('git bisect good YYY') and getting No testable commit…
CIsForCookies
  • 10,156
  • 5
  • 36
  • 74
0
votes
1 answer

I forgot to do git bisect reset: what are the consequences?

I was tracking down a problem in my codebase with git bisect and I forgot to do a reset at the end. I'm now on another branch, in the middle of my work. What happens if I do it now? Do I need to wait until I'm done with this branch?
iconoclast
  • 17,897
  • 10
  • 91
  • 122
0
votes
1 answer

How to see refs/bisect/bad?

Some documentation for git-bisect says, "The reference refs/bisect/bad will be left pointing at that commit." I'm not sure what a "reference" is. How do I see what refs/bisect/bad refers to? I checked How to use git bisect? but I don't think it…
Michael Osofsky
  • 7,571
  • 7
  • 42
  • 87