Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal: Remote branch 2.4 not found in upstream origin #7

Closed
indiandragon opened this issue Jul 4, 2019 · 1 comment
Closed

fatal: Remote branch 2.4 not found in upstream origin #7

indiandragon opened this issue Jul 4, 2019 · 1 comment
Assignees

Comments

@indiandragon
Copy link

Hi,

Could not download 2.4 branch with the script.

with
sudo ./build_opencv.sh 2.4

fatal: Remote branch 2.4 not found in upstream origin

I have checked that the 2.4 branch exists.

@mdegans
Copy link
Owner

mdegans commented Aug 1, 2019

The problem seems to be that opencv_contrib isn't available for that version. To fix it, please comment out the line:
git clone --branch "$1" https://github.com/opencv/opencv_contrib.git
in the git_source() function (should be around line 44).

I will change the script in the next version so that opencv_contrib will only be cloned if the version is >3.4 (but you are welcome to submit a pull request if you fix it yourself :)

@mdegans mdegans self-assigned this Aug 2, 2019
Repository owner locked as resolved and limited conversation to collaborators Mar 3, 2020
@mdegans mdegans closed this as completed Mar 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants