Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
TortoiseGit
TortoiseGit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 301
    • Issues 301
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 8
    • Merge requests 8
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #2955

Closed
Open
Created Mar 08, 2017 by Ron Vanderwal@mcdon.ron

LogDlg: infinite line to parent when initial commit is branched

Description

I noticed this issue in the log after combining two repositories. To combine the repositories I added repo B as a remote of repo A, then merged a branch of B with a branch of A. When checking the history after the merged I noticed a line running infinitely down past the initial commit for the branch of B (the red line in the following picture).

InfiniteLogLine

It seems when the log window draws the history for branching a commit, it assumes there is some other parent rather than that commit being the parent. In my scenario where two branches are merged that do not have a common history, this line searching for a parent continues the entire (unrelated) history.

What steps will reproduce the problem?

  1. create a new repository
  2. make an initial commit
  3. branch the initial commit
  4. commit change on the branch
  5. commit change on master
  6. merge branch to master
  7. add the new repository as a remote of an unrelated repository (preferably with a lot of history)
  8. fetch the new remote
  9. merge the master branch of the remote with a branch of the unrelated repsository using --allow-unrelated-histories
  10. check the log of the branch in the unrelated repository, and see an infinite line run from the initial commit of the branch from your new repository

What is the expected output? What do you see instead?

The history line of the log window should stop at the initial branched commit when it is the root

What version of TortoiseGit and Git are you using? On what operating system?

2.4.0

Edited Jul 07, 2017 by Sven Strickroth
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None