question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v0.19] Reporting a case where a branch couldn't have been initialized during a `clone --with-branches`

See original GitHub issue

You are here because you’ve got at least one branch that has not been initialized during a clone --branch=all (or in the past clone --with-branches).

Work have been done and merged to support as much merge cases as possible.

But it seems there is still cases not well managed.

One that seems not managed is the case where a branch that should be merged has been deleted and another one created with the same name.

At the moment, there is no plan to work on that for multiple reason.

What you could try:

  • download and try the last development version of master branch in case a fix has not yet been released. (you even could test some pull requests to see if someone proposed a fix)
  • If you think you can improve the support of such cases (you are the one that has the tfs history with such case!), feel free to dive in the code and do a pull request. We will be happy to review and merge it…
  • clone without branch support ( I know it’s not what you want 😦 but there is no solution yet) with clone --branch=none

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Reactions:3
  • Comments:112 (39 by maintainers)

github_iconTop GitHub Comments

3reactions
tibor-at-shellcommented, Jan 11, 2022

@nk111 Is your patched version of git-tfs by any change available ? I think I have a similar issue on a repository with ~20 years of history. I would love to try your version on that repo and see what happens.

2reactions
dgtlriftcommented, Aug 17, 2017

Saw this error message - not sure what to do next reading the comments above

...
C504968 = e70bf32d3c65169d1211a97c2bf19451706872ee
=> Working on TFS branch : $/GF/Projects/GFSBS/Dev/BRZ_Cellular
Branches to Initialize successively :
-$/GF/Projects/GFSBS/Dev/BRZ_Cellular (489311)
The name of the local branch will be : Projects/GFSBS/Dev/BRZ_Cellular
        Fetching from dependent TFS remote 'Projects/GFSBS/Dev/CellularMerge'...
error: an error occurs when initializing the branch. Branch is ignored and continuing...
=> Working on TFS branch : $/GF/Projects/GFSBS/Release/GFSBS/V10.50_CLP
C500414 = 6004776be2ee7f0b516067ff9272b6afd937b8b5
C500416 = 3bc5fbe9fd4197daa38824b1b8262386ee9cc1a5
C500427 = 44f94c25e827bf052c7a4da6b621c1ad39441ad3
C501807 = d97f81a6bd025450a6aef43855f96da15ee42637
C501814 = 970f5acfe1091c429c335d1bc1a9c7f825815945
C501991 = a9480dceef1ccc8c137accbdff176555d09b9166
C502225 = d87a4f86855d2de53fba7d727aae8520d88e792f
C502335 = 3d68f325aceacb01f6adcc7d707ededa57facb58
C502338 = fa727ecca32d1f3db3792aa73a3611a1c5c1f629
=> Working on TFS branch : $/GF/Projects/GFSBS/Main
warning: Some Tfs branches could not have been initialized:
- $/GF/Projects/GFSBS/Dev/BRZ_Cellular

Please report this case to the git-tfs developers! (report here : https://github.com/git-tfs/git-tfs/issues/461 )
warning: Some Tfs branches could not have been initialized or entirely fetched due to errors:
- $/GF/Projects/GFSBS/Dev/BRZ_Cellular
   =>error:error: Couldn't fetch parent branch


Please report this case to the git-tfs developers! (report here : https://github.com/git-tfs/git-tfs/issues )

C:\P\git\GS>

Is there some kind of diagnostic message I can provide?

Read more comments on GitHub >

github_iconTop Results From Across the Web

git tfs branch --init --all errors
The problem is caused by the branch having been renamed. There is a issue for this here but it has not yet be...
Read more >
After git-tfs clone of two TFS stores, how to merge?
I can clone each TFS server into its own local GIT repo no problem, branches, history, all lovely. Is there any way I...
Read more >
How to Get Started with GIT and work with GIT Remote Repo
A VCS serves as a Repository (or repo) of program codes, including all the historical revisions. It records changes to files at so-called...
Read more >
Git error - Fatal: Not a git repository and how to fix it
This error means you attempted to run a Git command, but weren't inside a Git repository. Make sure you've: Navigated to the right...
Read more >
Git - git-clone Documentation
Clones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository (visible using git branch ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found