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

Error pathspec origin/master #731

Open
kadubsb opened this issue Mar 20, 2024 · 3 comments
Open

Error pathspec origin/master #731

kadubsb opened this issue Mar 20, 2024 · 3 comments

Comments

@kadubsb
Copy link

kadubsb commented Mar 20, 2024

Hello, I'm having difficulty finalizing the ffmpeg compilation because it shows an error in the pathspec 'origin/master' as shown in the attached screen, could anyone help me in this case?

Error Compilation

@Andre0be
Copy link

Here the same problem. Lubuntu 23.10

Any idea?

@Iansa9
Copy link

Iansa9 commented Mar 24, 2024

Changing build_libopus to this fixed it for me:

build_libopus() {
  do_git_checkout https://github.com/xiph/opus.git opus_git origin/main
  cd opus_git
    generic_configure "--disable-doc --disable-extra-programs --disable-stack-protector"
    do_make_and_make_install
  cd ..
}

@pjt-15e
Copy link

pjt-15e commented Mar 26, 2024

I came to this after finding my own solution, and agree that lansa9's solution above works too.

The change I made locally was within "do_git_checkout()" where I check for the git branches available, for either "origin/master" or "origin/main" (as found in libopus).

So

if [[ -z $desired_branch ]]; then
    desired_branch="origin/master"
fi

becomes

if [[ -z $desired_branch ]]; then
	# Check for either "origin/main" or "origin/master".
	if [ $(git show-ref | grep -e origin\/main$ -c) = 1 ]; then
		desired_branch="origin/main"
	elif [ $(git show-ref | grep -e origin\/master$ -c) = 1 ]; then
		desired_branch="origin/master"
	else
		echo "No valid git branch!"
		exit 1
	fi
fi
echo "doing git checkout $desired_branch"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants