Questions tagged [git-bisect]

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

101 questions
0
votes
1 answer

Bisecting faulty commits

Hope you are doing well! i have a query on how to automate git bisect. currently we are manually finding the faulty commit in bunch of commits manually given git bisect commands. Is there any python script or any bash script? as am very new to…
Python
  • 17
  • 1
  • 4
0
votes
1 answer

How do I test whether a commit is in a set?

During git bisect I want to take a specific action if the commit being bisected is the member of a set of commits of interest. Specifically, consider this situation: ----------C-------- A \---B---/ B and C are both reachable from A but not…
David Greene
  • 394
  • 2
  • 12
0
votes
1 answer

Can git bisect ignore folders, for instance test folders?

Let say I've previously set up a super-swish test framework for a legacy system. That is feature A existed long before the test for feature A. Feature B, C and D come along and without us realising, at some point break the test for feature A. We…
AncientSwordRage
  • 7,086
  • 19
  • 90
  • 173
0
votes
2 answers

git: simpler bisect: tool should find good-hash itself

I am lazy, and want to use git bisect to find a commit which introduced a failure with little work as possible. I don't see a reason to supply a good-hash myself. I think these input should be enough: a script which return 0 on success, and other…
guettli
  • 25,042
  • 81
  • 346
  • 663
0
votes
1 answer

Why does the git bisect command have a much wider range of commits than the one specified?

I did the following on a random git repository: git bisect start git bisect good HEAD~100 git bisect bad // Should just point to the current HEAD, right? I would have expected a range of 100 commits to be tested by git, however what I got was 1000…
cgf
  • 3,369
  • 7
  • 45
  • 65
0
votes
1 answer

How can I use "bisect run" on a test that only exists in HEAD?

I discovered a bug and I want to figure out where it got introduced. The next thing I did was create a unit test that currently fails but should pass when the bug is fixed. I've created a unit test in HEAD and can run it from the command line. …
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
0
votes
1 answer

Running git bisect while using libraries that are under active development

I have two projects, LogViewer, and LogAnalyzer that are both under development in separate git repositories, and LogViewer depends on LogAnalyzer. I'm trying to do a git bisect on LogViewer, but every time I try to test a new commit, I have to find…
Drew
  • 12,578
  • 11
  • 58
  • 98
-1
votes
1 answer

git bisect and finding last good commit - am I missing something?

My question concerns when git bisect has found the first bad commit: $ git bisect good 2060c40f6c3d3c057f9fdab31643599da375296b is the first bad commit ❌ commit 2060c40f6c3d3c057f9fdab31643599da375296b Author: .... Date: Tue Feb 16 11:15:52 2021…
JL Peyret
  • 10,917
  • 2
  • 54
  • 73
-1
votes
1 answer

How to use git bisect on a remote repository?

I'm creating a Python module that would allow for users to run git bisect on a user specified repository, but I don't quite know how to make git bisect work for a remote repository, one that is not on the machine calling the function. I don't want…
-1
votes
1 answer

Could someone explain what an SVN bisect algorithm is? Theoretically and through code snippet

I want to understand what an SVN bisect / git-bisect algorithm is..I have tried to search online resources but unable to get a good problem statement and solution.
-2
votes
2 answers

How to find a bug in origin with git tools

I develop my app locally (in my own branch), but I can only test it on a remote dev server, by pushing to a git repo (my own branch) on the server, and then testing a working copy there. As I can't find out why my web app crashed, I want to find the…
Konst54
  • 175
  • 9
1 2 3 4 5 6
7